1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// license:BSD-3-Clause
// copyright-holders:Aaron Giles
#pragma once
#ifndef __WAVWRITE_H__
#define __WAVWRITE_H__
struct 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__ */
|