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

Mixer channels and write position for one SDL audio context. More...

#include <audiomix.h>

Collaboration diagram for SdlMixerState:

Public Attributes

u16 writePosition
MixerChannel musicChannels [MIXER_CHANNELS]
u64 soundEffectSampleMask
MixerChannel soundEffectChannels [SOUND_EFFECT_CHANNELS]
s32 soundEffectEchoOffset

Detailed Description

Mixer channels and write position for one SDL audio context.

Member Data Documentation

◆ writePosition

u16 SdlMixerState::writePosition

The byte offset of the next write within the stereo ring buffer.

◆ musicChannels

MixerChannel SdlMixerState::musicChannels[MIXER_CHANNELS]

The music mixer's sample channels.

◆ soundEffectSampleMask

u64 SdlMixerState::soundEffectSampleMask

The mask that clears low bits during packed effect mixing.

◆ soundEffectChannels

MixerChannel SdlMixerState::soundEffectChannels[SOUND_EFFECT_CHANNELS]

The sound effect channels.

◆ soundEffectEchoOffset

s32 SdlMixerState::soundEffectEchoOffset

The sample offset from channel zero to its echo, or zero.


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