Mercurial > spc_convert
diff demo/wave_writer.h @ 0:e38dacceb958
initial import
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Fri, 21 Oct 2011 05:53:11 -0700 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/demo/wave_writer.h Fri Oct 21 05:53:11 2011 -0700 1.3 @@ -0,0 +1,20 @@ 1.4 +/* WAVE sound file writer for recording 16-bit output during program development */ 1.5 + 1.6 +#ifndef WAVE_WRITER_H 1.7 +#define WAVE_WRITER_H 1.8 + 1.9 +#ifdef __cplusplus 1.10 + extern "C" { 1.11 +#endif 1.12 + 1.13 +void wave_open( long sample_rate, const char* filename ); 1.14 +void wave_enable_stereo( void ); 1.15 +void wave_write( short const* in, long count ); 1.16 +long wave_sample_count( void ); 1.17 +void wave_close( void ); 1.18 + 1.19 +#ifdef __cplusplus 1.20 + } 1.21 +#endif 1.22 + 1.23 +#endif