diff options
Diffstat (limited to 'trunk/src/emu/sound/wavwrite.h')
-rw-r--r-- | trunk/src/emu/sound/wavwrite.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/trunk/src/emu/sound/wavwrite.h b/trunk/src/emu/sound/wavwrite.h new file mode 100644 index 00000000000..a1f21a8237d --- /dev/null +++ b/trunk/src/emu/sound/wavwrite.h @@ -0,0 +1,16 @@ +#pragma once + +#ifndef __WAVWRITE_H__ +#define __WAVWRITE_H__ + +typedef struct _wav_file wav_file; + +wav_file *wav_open(const char *filename, int sample_rate, int channels); +void wav_close(wav_file*wavptr); + +void wav_add_data_16(wav_file *wavptr, INT16 *data, int samples); +void wav_add_data_32(wav_file *wavptr, INT32 *data, int samples, int shift); +void wav_add_data_16lr(wav_file *wavptr, INT16 *left, INT16 *right, int samples); +void wav_add_data_32lr(wav_file *wavptr, INT32 *left, INT32 *right, int samples, int shift); + +#endif /* __WAVWRITE_H__ */ |