Mercurial > spc_convert
annotate demo/wave_writer.h @ 2:c3248c71ae74
begin convert program
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Fri, 21 Oct 2011 06:21:33 -0700 |
parents | e38dacceb958 |
children |
rev | line source |
---|---|
rlm@0 | 1 /* WAVE sound file writer for recording 16-bit output during program development */ |
rlm@0 | 2 |
rlm@0 | 3 #ifndef WAVE_WRITER_H |
rlm@0 | 4 #define WAVE_WRITER_H |
rlm@0 | 5 |
rlm@0 | 6 #ifdef __cplusplus |
rlm@0 | 7 extern "C" { |
rlm@0 | 8 #endif |
rlm@0 | 9 |
rlm@0 | 10 void wave_open( long sample_rate, const char* filename ); |
rlm@0 | 11 void wave_enable_stereo( void ); |
rlm@0 | 12 void wave_write( short const* in, long count ); |
rlm@0 | 13 long wave_sample_count( void ); |
rlm@0 | 14 void wave_close( void ); |
rlm@0 | 15 |
rlm@0 | 16 #ifdef __cplusplus |
rlm@0 | 17 } |
rlm@0 | 18 #endif |
rlm@0 | 19 |
rlm@0 | 20 #endif |