ref: 43af1b228d271f84549ce21d6afe5b7643da07a0
dir: /frontend/input.h/
/* * FAAC - Freeware Advanced Audio Coder * Copyright (C) 2002 Krzysztof Nikiel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * $Id: input.h,v 1.1 2002/11/23 17:39:14 knik Exp $ */ #ifndef _INPUT_H #define _INPUT_H #include <stdio.h> #include <stdlib.h> #ifdef __cplusplus extern "C" { #endif typedef struct { FILE *f; int channels; int samplebits; int samplerate; int samples; } pcmfile_t; pcmfile_t *wav_open_read(const char *path); size_t wav_read_short(pcmfile_t *file, short *ptr, size_t size); int wav_close(pcmfile_t *file); #ifdef __cplusplus } #endif #endif /* _INPUT_H */