Chris@1
|
1 /********************************************************************
|
Chris@1
|
2 * *
|
Chris@1
|
3 * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
|
Chris@1
|
4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
|
Chris@1
|
5 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
|
Chris@1
|
6 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
|
Chris@1
|
7 * *
|
Chris@1
|
8 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2007 *
|
Chris@1
|
9 * by the Xiph.Org Foundation http://www.xiph.org/ *
|
Chris@1
|
10 * *
|
Chris@1
|
11 ********************************************************************
|
Chris@1
|
12
|
Chris@1
|
13 function: utility functions for vorbis codec test suite.
|
Chris@1
|
14 last mod: $Id: util.c 13293 2007-07-24 00:09:47Z erikd $
|
Chris@1
|
15
|
Chris@1
|
16 ********************************************************************/
|
Chris@1
|
17
|
Chris@1
|
18 /* Write supplied data to an Ogg/Vorbis file with specified filename at
|
Chris@1
|
19 * specified sample rate. Assumes a single channel of audio. */
|
Chris@1
|
20 void write_vorbis_data_or_die (const char *filename, int srate, float q,
|
Chris@1
|
21 const float * data, int count, int ch) ;
|
Chris@1
|
22
|
Chris@1
|
23 /* Read given Ogg/Vorbis file into data specified data array. This
|
Chris@1
|
24 * function is basically the inverse of the one above. Again, assumes
|
Chris@1
|
25 * a single channel of audio. */
|
Chris@1
|
26 void read_vorbis_data_or_die (const char *filename, int srate,
|
Chris@1
|
27 float * data, int count) ;
|
Chris@1
|
28
|