view demo/wave_writer.h @ 3:95cdedd01422

allow user to select number of seconds to convert
author Robert McIntyre <rlm@mit.edu>
date Fri, 21 Oct 2011 06:44:35 -0700
parents e38dacceb958
children
line wrap: on
line source
1 /* WAVE sound file writer for recording 16-bit output during program development */
3 #ifndef WAVE_WRITER_H
4 #define WAVE_WRITER_H
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
10 void wave_open( long sample_rate, const char* filename );
11 void wave_enable_stereo( void );
12 void wave_write( short const* in, long count );
13 long wave_sample_count( void );
14 void wave_close( void );
16 #ifdef __cplusplus
17 }
18 #endif
20 #endif