]> git.ozlabs.org Git - ccan/blob - ccan/ogg_to_pcm/ogg_to_pcm.h
New module wwviaudio.
[ccan] / ccan / ogg_to_pcm / ogg_to_pcm.h
1 #ifndef __OGG_TO_PCM_H__
2 #define __OGG_TO_PCM_H__
3 #ifdef DEFINE_OGG_TO_PCM_GLOBALS
4 #define GLOBAL
5 #else
6 #define GLOBAL extern
7 #endif
8
9 /* OggDec
10  *
11  * This program is distributed under the GNU General Public License, version 2.
12  * A copy of this license is included with this source.
13  *
14  * Copyright 2002, Michael Smith <msmith@xiph.org>
15  *
16  */
17
18 /*
19  *
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.)
25  *
26  */
27
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.
32  */
33 GLOBAL int ogg_to_pcm(char *infile, int16_t **pcmbuffer,
34         int *samplesize, int *sample_rate, int *nchannels,
35         uint64_t *nsamples);
36
37 #undef GLOBAL
38 #endif