view 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 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