1 #ifndef __OGG_TO_PCM_H__
2 #define __OGG_TO_PCM_H__
4 #ifdef DEFINE_OGG_TO_PCM_GLOBALS
12 * This program is distributed under the GNU General Public License, version 2.
13 * A copy of this license is included with this source.
15 * Copyright 2002, Michael Smith <msmith@xiph.org>
21 * This code was hacked off of the carcass of oggdec.c, from
22 * the vorbistools-1.2.0 package, and is copyrighted as above,
23 * with the modifications made by me,
24 * (c) Copyright Stephen M. Cameron, 2008,
25 * (and of course also released under the GNU General Public License, version 2.)
29 /* ogg_to_pcm() reads an ogg vorbis audio file, infile, and
30 * dumps the data into a big buffer, *pcmbuffer (which it
31 * allocates via malloc) and returns the number of samples
32 * in *nsamples, and the samplesize in *samplesize. and etc.
34 GLOBAL int ogg_to_pcm(char *infile, int16_t **pcmbuffer,
35 int *samplesize, int *sample_rate, int *nchannels,