annotate src/libvorbis-1.3.3/test/write_read.h @ 1:05aa0afa9217

Bring in flac, ogg, vorbis
author Chris Cannam
date Tue, 19 Mar 2013 17:37:49 +0000
parents
children
rev   line source
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