class
MAudioComponent
- Module
- Game
- Header
#include "Game/MAudioComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
std::string | clipPath | Config |
std::string | bus | Master / Music / SFX / Voice / Ambient Default "SFX". |
float | volume | Default 1.0f. |
float | pitch | Default 1.0f. |
bool | loop | Default false. |
bool | spatial | Default true. |
bool | playOnStart | Default false. |
Constructors
| Signature | Name | Description |
|---|---|---|
MAudioComponent() = default | MAudioComponent |
Public functions
| Returns | Name | Description |
|---|---|---|
void | OnRegister | Mirror an AudioSourceComponent onto the backing entity. |
void | PullFromMirror | |
void | BeginPlay | playOnStart honours its name: the clip starts when play begins, not when the actor is placed. |
void | Play | Playback control — request flags, consumed by AudioSystem. |
void | Stop | |
bool | IsPlaying | |
void | RefreshMirror | Re-push the config fields onto the mirrored component (volume / pitch edits after OnRegister won't apply otherwise). |
Function details
MAudioComponent
C++
MAudioComponent() = defaultOnRegister
C++
void OnRegister() overrideMirror an AudioSourceComponent onto the backing entity.
PullFromMirror
C++
void PullFromMirror(World* ecs, EntityID entity) overrideBeginPlay
C++
void BeginPlay() overrideplayOnStart 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() constRefreshMirror
C++
void RefreshMirror() overrideRe-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