Audio namespace

Classes

class AudioSystem

Enums

enum AudioProperties { kAudioVolume = 0x25DF0108 }

Typedefs

using AudioTrack = int

Functions

auto Addresses(AudioSystem) -> namespace
auto CreateAudioTrack() -> AudioTrack
Creates a new audio channel (an individual track where only one sound can be played at the same time) and returns the index used to reference it.
auto PlayAudio(uint32_t soundID, AudioTrack track) -> void
Plays a standard sound (.snr file?) in the given audio track.
auto PlayAudio(uint32_t soundID) -> AudioTrack
Creates a new track and plays the given sound on it.
auto StopAudio(AudioTrack track, int param2 = 0) -> void
Stops playing a given audio track and destroys it.
auto PlayProceduralAudio(uint32_t audioID, AudioTrack track, const Math::Vector3& position) -> void
Plays a procedural audio (.pd files??) at a specific position.
auto SetPropertyString(AudioTrack track, uint32_t propertyID, const char* pValue) -> void
Sets a eastl::string property for the given track.
auto SetProperty(AudioTrack track, uint32_t propertyID, float floatValue, int intValue) -> void
Sets an int/bool/float property for the given track.

Enum documentation

Typedef documentation

Function documentation

AudioTrack Audio::CreateAudioTrack()

Creates a new audio channel (an individual track where only one sound can be played at the same time) and returns the index used to reference it.

Returns

void Audio::PlayAudio(uint32_t soundID, AudioTrack track)

Plays a standard sound (.snr file?) in the given audio track.

Parameters
soundID
track The track index

AudioTrack Audio::PlayAudio(uint32_t soundID)

Creates a new track and plays the given sound on it.

Parameters
soundID
Returns The track index

void Audio::StopAudio(AudioTrack track, int param2 = 0)

Stops playing a given audio track and destroys it.

Parameters
track
param2

void Audio::PlayProceduralAudio(uint32_t audioID, AudioTrack track, const Math::Vector3& position)

Plays a procedural audio (.pd files??) at a specific position.

Parameters
audioID
track
position

void Audio::SetPropertyString(AudioTrack track, uint32_t propertyID, const char* pValue)

Sets a eastl::string property for the given track.

Parameters
track
propertyID
pValue

void Audio::SetProperty(AudioTrack track, uint32_t propertyID, float floatValue, int intValue)

Sets an int/bool/float property for the given track.

Parameters
track
propertyID
floatValue
intValue