coastline 0.0.4
Loading...
Searching...
No Matches
MixerChannel Struct Reference

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

Detailed Description

A channel of a mixer.

The mixer reads the sample address and its fraction as one 32.32 fixed point position.

Member Data Documentation

◆ sample

s8* MixerChannel::sample

The next signed 8-bit sample.

◆ sampleAddress

unsigned long MixerChannel::sampleAddress

The whole part of the 32.32 position.

◆ [union]

union { ... } MixerChannel

◆ fraction

u32 MixerChannel::fraction

The fraction of the position past sample, the low half of the 32.32 value.

◆ step

u64 MixerChannel::step

The 32.32 step added to the position before each sample, or 0 when silent.

◆ mixVolume

s32 MixerChannel::mixVolume

The volume the mixer multiplies each sample by.

◆ volume

u32 MixerChannel::volume

The packed levels the game sets, which the mixer scales into mixVolume.


The documentation for this struct was generated from the following file: