|
coastline 0.0.4
|
A wave file loaded whole into memory, which a preset registers and sample playbacks share. More...
#include <wavesample.h>
Public Member Functions | |
| EarWaveSample () | |
| Initialise empty sample storage and file-source defaults without assigning a wave format. | |
| ~EarWaveSample () | |
| Free allocated sample storage and subtract its tracked byte count from the sample budget. | |
| int | LoadWaveSample (const void *source, EarWaveSampleSource sourceKind) |
| Load wave samples into allocated storage with sample-memory budget accounting. | |
| char * | GetWaveSampleBuffer () const |
| DWORD | GetWaveSampleByteCount () const |
| EarWaveFormat | CopyWaveSampleFormat () const |
A wave file loaded whole into memory, which a preset registers and sample playbacks share.
| EarWaveSample::EarWaveSample | ( | ) |
Initialise empty sample storage and file-source defaults without assigning a wave format.
| EarWaveSample::~EarWaveSample | ( | ) |
Free allocated sample storage and subtract its tracked byte count from the sample budget.
Borrowing sample playbacks must be released before destruction.
| int EarWaveSample::LoadWaveSample | ( | const void * | source, |
| EarWaveSampleSource | sourceKind ) |
Load wave samples into allocated storage with sample-memory budget accounting.
Use an empty sample object; loading does not release a previous sample allocation first. Failed loads retain any budget reservation until destruction.
| source | A non-null terminated path or complete readable RIFF image, borrowed during load. |
| sourceKind | How source is given. |
| char * EarWaveSample::GetWaveSampleBuffer | ( | ) | const |
| DWORD EarWaveSample::GetWaveSampleByteCount | ( | ) | const |
| EarWaveFormat EarWaveSample::CopyWaveSampleFormat | ( | ) | const |