26 Wav parse_wav(
const void* wav_data,
size_t size_bytes);
double duration_sec
Length of the sound in seconds.
Definition: wav.hpp:17
const void * data
Sample data, little-endian.
Definition: wav.hpp:21
int sample_rate
Frames per second. Probably 44100.
Definition: wav.hpp:20
int bits_per_sample
Probably 16.
Definition: wav.hpp:19
size_t data_size
Number of bytes in 'data'.
Definition: wav.hpp:22
int channels
1=mono, 2=stereo.
Definition: wav.hpp:18
Definition: coroutine.hpp:18