group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
SfxSystem::Voice Struct Reference

A single concurrent playback voice. More...

Public Attributes

SDL_AudioStream * stream = nullptr
 Bound audio stream (nullptr = slot free).
bool active = false
SfxId playingId = SfxId::_Count
 Which sound this voice is playing.
float duration = 0.0f
 Expected playback length in seconds.
float elapsed = 0.0f
 Seconds since playback started.

Detailed Description

A single concurrent playback voice.

Member Data Documentation

◆ active

bool SfxSystem::Voice::active = false

◆ duration

float SfxSystem::Voice::duration = 0.0f

Expected playback length in seconds.

◆ elapsed

float SfxSystem::Voice::elapsed = 0.0f

Seconds since playback started.

◆ playingId

SfxId SfxSystem::Voice::playingId = SfxId::_Count

Which sound this voice is playing.

◆ stream

SDL_AudioStream* SfxSystem::Voice::stream = nullptr

Bound audio stream (nullptr = slot free).


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