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