Skip to main content

MiniAudio Plugin — User Documentation

The MiniAudio plugin is PlasmaEngine's default sound backend. It plays every sound in the engine and requires no external audio middleware, licences or authoring tools — events, the project mixer, DSP effects and snapshots are all authored inside the Plasma editor.

Documentation index​

DocumentWhat it covers
Audio EventsThe .plAudioEventAsset and the Audio Event editor: instruments, playlists, randomization, parameters, automation, audition, loop regions and fades.
MixerThe .plAudioMixerAsset and the Mixer Console: bus hierarchy, aux/reverb returns, insert effects, VCAs and snapshots.
ComponentsEvery audio component you can place in a scene, with property tables.
Spatial Audio3D positioning, attenuation, occlusion/obstruction ray-casts and reverb zones.
ScriptingPlaying and controlling audio from script and C++.
TroubleshootingSymptoms and fixes, plus the full console-variable reference.

Core concepts​

ConceptMeaning
Audio EventThe thing gameplay plays. Owns one or more instruments, spatializer settings, polyphony rules, parameters and automation curves. One asset = one sound "cue".
InstrumentA track inside an event. Holds a playlist of sound files plus randomization, looping and start-delay settings.
PlaylistThe sound files an instrument can pick from, each with a weight. Multiple entries make the instrument a multi sound.
MixerOne project-wide asset describing the bus hierarchy every event routes into, plus VCAs and snapshots.
BusA mixing channel with volume, pitch, insert effects and aux sends. The first bus in the mixer is always the Master bus.
Aux busA return bus (typically holding a reverb) fed by sends and by reverb zones in the scene.
VCAA named gain applied across a set of buses — the classic "Music / SFX volume" options sliders.
SnapshotA blendable set of mixer overrides ("Underwater", "Pause Menu") faded in and out at runtime.
ParameterA named float on a playing event instance. Automation curves map it to volume or pitch.

Quick start​

  1. Create the mixer. Asset Browser → New → Audio Mixer. Click + Bus (the first one becomes Master), then add SFX, Music, Ambience as needed. Save.
  2. Load it in your scene. Add a plAudioMixerLoaderComponent to any object and point it at the mixer asset.
  3. Create an event. New → Audio Event, click + Instrument, then + Add Files… in the deck and pick one or more sound files. Press ▶ Play to hear it.
  4. Place it in the world. On a game object add a plAudioProxyComponent and a plAudioTriggerComponent, then pick your event from the trigger's PlayTrigger dropdown.
  5. Play the scene. The event fires on activation, or call Play() from script.

Asset types​

AssetExtensionCompiled outputEditor
Audio Event.plAudioEventAssetplBinAudioEventAudio Event window (timeline + deck)
Audio Mixer.plAudioMixerAssetplBinAudioMixerMixer Console window
MiniAudio Sound (legacy).plMiniAudioSoundAssetplBinMiniAudioSoundProperty grid

Supported source formats are WAV and MP3. Sample data is embedded into the compiled asset, so shipped builds do not need the original files.

About the legacy sound asset​

.plMiniAudioSoundAsset predates the event system. It still loads and plays, and existing scenes using plMiniAudioSoundComponent keep working. New content should use Audio Events instead — they support randomization, parameters, mixer routing, occlusion and snapshots, none of which the legacy asset has.

See Troubleshooting if something behaves unexpectedly.

In this section​