ScummVM API documentation
Mohawk::SndHandle Struct Reference

#include <sound.h>

Public Attributes

Audio::SoundHandle handle
 
SndHandleType type
 
uint samplesPerSecond
 
uint16 id
 

Detailed Description

Tracks one mixer playback instance created by Mohawk::Sound.

The sound manager reuses an entry after its mixer handle becomes inactive. Resource identity and sample rate are retained separately because the mixer handle does not expose the Mohawk SND ID or a source-frame position.

Member Data Documentation

◆ handle

Audio::SoundHandle Mohawk::SndHandle::handle

Mixer handle used to stop the instance and query its playback state.

◆ type

SndHandleType Mohawk::SndHandle::type

Allocation state of this entry in Mohawk::Sound::_handles.

◆ samplesPerSecond

uint Mohawk::SndHandle::samplesPerSecond

Source sample rate used to convert elapsed milliseconds to sample frames.

◆ id

uint16 Mohawk::SndHandle::id

Mohawk SND resource ID associated with the active mixer instance.


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