1#ifndef COASTLINE_EAR_WAVESAMPLE_H
2#define COASTLINE_EAR_WAVESAMPLE_H
69 int ReadWaveSampleData(
const void *source);
77 int AcceptWaveSampleData();
EarWaveSample()
Initialise empty sample storage and file-source defaults without assigning a wave format.
int LoadWaveSample(const void *source, EarWaveSampleSource sourceKind)
Load wave samples into allocated storage with sample-memory budget accounting.
EarWaveFormat CopyWaveSampleFormat() const
~EarWaveSample()
Free allocated sample storage and subtract its tracked byte count from the sample budget.
char * GetWaveSampleBuffer() const
DWORD GetWaveSampleByteCount() const
WAVEFORMATEX EarWaveFormat
Definition wavechunks.h:23
EarWaveSampleSource
The source of a wave sample, as RegisterPreset passes it.
Definition wavesample.h:9
@ EAR_WAVE_SAMPLE_SOURCE_FILE
Definition wavesample.h:10
@ EAR_WAVE_SAMPLE_SOURCE_MEMORY
Definition wavesample.h:11