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