aboutsummaryrefslogtreecommitdiff
path: root/src/midiplay/wave_writer.h
blob: 6d49718165203fbc0ba2b661c6bea947e382e8bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* WAVE sound file writer for recording 16-bit output during program development */

#pragma once
#ifndef WAVE_WRITER_H
#define WAVE_WRITER_H

#ifdef __cplusplus
	extern "C" {
#endif

int wave_open( long sample_rate, const char* filename );
void wave_enable_stereo( void );
void wave_write( short const* in, long count );
long wave_sample_count( void );
void wave_close( void );

#ifdef __cplusplus
	}
#endif

#endif