|
coastline 0.0.4
|
A channel of a mixer. More...
#include <audiomix.h>
Public Attributes | |
| union { | |
| s8 * sample | |
| unsigned long sampleAddress | |
| }; | |
| u32 | fraction |
| u64 | step |
| s32 | mixVolume |
| u32 | volume |
A channel of a mixer.
The mixer reads the sample address and its fraction as one 32.32 fixed point position.
| s8* MixerChannel::sample |
The next signed 8-bit sample.
| unsigned long MixerChannel::sampleAddress |
The whole part of the 32.32 position.
| union { ... } MixerChannel |
| u32 MixerChannel::fraction |
The fraction of the position past sample, the low half of the 32.32 value.
| u64 MixerChannel::step |
The 32.32 step added to the position before each sample, or 0 when silent.
| s32 MixerChannel::mixVolume |
The volume the mixer multiplies each sample by.
| u32 MixerChannel::volume |
The packed levels the game sets, which the mixer scales into mixVolume.