class

MAudioComponent

Module
Game
Header
#include "Game/MAudioComponent.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Properties

TypeNameDescription
std::stringclipPathConfig
std::stringbusMaster / Music / SFX / Voice / Ambient Default "SFX".
floatvolumeDefault 1.0f.
floatpitchDefault 1.0f.
boolloopDefault false.
boolspatialDefault true.
boolplayOnStartDefault false.

Constructors

SignatureNameDescription
MAudioComponent() = defaultMAudioComponent

Public functions

ReturnsNameDescription
voidOnRegisterMirror an AudioSourceComponent onto the backing entity.
voidPullFromMirror
voidBeginPlayplayOnStart honours its name: the clip starts when play begins, not when the actor is placed.
voidPlayPlayback control — request flags, consumed by AudioSystem.
voidStop
boolIsPlaying
voidRefreshMirrorRe-push the config fields onto the mirrored component (volume / pitch edits after OnRegister won't apply otherwise).

Function details

MAudioComponent

C++
MAudioComponent() = default

OnRegister

C++
void OnRegister() override

Mirror an AudioSourceComponent onto the backing entity.

PullFromMirror

C++
void PullFromMirror(World* ecs, EntityID entity) override

BeginPlay

C++
void BeginPlay() override

playOnStart honours its name: the clip starts when play begins, not when the actor is placed. Registering only publishes the mirror, so an editor viewport is silent.

Play

C++
void Play()

Playback control — request flags, consumed by AudioSystem.

Stop

C++
void Stop()

IsPlaying

C++
bool IsPlaying() const

RefreshMirror

C++
void RefreshMirror() override

Re-push the config fields onto the mirrored component (volume / pitch edits after OnRegister won't apply otherwise).

Generated from Game/MAudioComponent.h via game.json · Nov 5, 2026Version 1.0.0