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