MAudioStatics
Reflected façade over the AudioEngine singleton, so the bus mixer and fire-and-forget playback show up as Visual Script nodes without annotating the whole miniaudio-laden engine. Every method forwards to AudioEngine::Get() and is a safe no-op when the engine is not initialized. Stateless — a Visual Script graph can call these on any instance the VM hands it.
- Module
- Audio
- Header
#include "Audio/MAudioStatics.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Public functions
| Returns | Name | Description |
|---|---|---|
void | SetBusVolume | out-of-range calls are ignored. |
float | GetBusVolume | |
void | SetMasterVolume | |
float | GetMasterVolume | |
void | PlaySound2D | One-shot 2D playback on the given bus (see AudioEngine::PlayOneShot). |
void | PlaySoundAtLocation | One-shot spatial playback positioned at (x,y,z) on the given bus. |
void | StopAllSounds | |
void | SetAudioParameter | RTPC (FAudioParameters): a named game value every bound source, submix and MetaSound input follows, gliding over its smoothing time. |
float | GetAudioParameter | |
void | SetAudioParameterSmoothing | |
int32_t | GetAudibleSoundCount | Acoustic compass (AudioEngine::QueryAudible): the sounds the listener hears at or above minLoudness, loudest first. |
float | GetAudibleSoundAzimuth | |
float | GetAudibleSoundLoudness | |
std::string | GetAudibleSoundCaption |
Function details
SetBusVolume
void SetBusVolume(int32_t bus, float volume)out-of-range calls are ignored.
GetBusVolume
float GetBusVolume(int32_t bus) constSetMasterVolume
void SetMasterVolume(float volume)GetMasterVolume
float GetMasterVolume() constPlaySound2D
void PlaySound2D(const std::string& clipPath, float volume)One-shot 2D playback on the given bus (see AudioEngine::PlayOneShot).
PlaySoundAtLocation
void PlaySoundAtLocation(const std::string& clipPath, float x, float y, float z, float volume)One-shot spatial playback positioned at (x,y,z) on the given bus.
StopAllSounds
void StopAllSounds()SetAudioParameter
void SetAudioParameter(const std::string& name, float value)RTPC (FAudioParameters): a named game value every bound source, submix and MetaSound input follows, gliding over its smoothing time.
GetAudioParameter
float GetAudioParameter(const std::string& name) constSetAudioParameterSmoothing
void SetAudioParameterSmoothing(const std::string& name, float seconds)GetAudibleSoundCount
int32_t GetAudibleSoundCount(float minLoudness) constAcoustic compass (AudioEngine::QueryAudible): the sounds the listener hears at or above minLoudness, loudest first. Index past the end reads 0 / empty.
GetAudibleSoundAzimuth
float GetAudibleSoundAzimuth(int32_t index, float minLoudness) constGetAudibleSoundLoudness
float GetAudibleSoundLoudness(int32_t index, float minLoudness) constGetAudibleSoundCaption
std::string GetAudibleSoundCaption(int32_t index, float minLoudness) const