Skip to content

SubMixers

MMaillard edited this page Jun 27, 2024 · 2 revisions

Here we will create a new submixer and apply it to a sound.

Audio_System* audioSystem = Audio_System::getExistingInstance();
audioSystem->addSubMixer("CustomSubMixer");
audioSystem->setSubMixerVolume("CustomSubMixer", 50.f);

Sound sfx("../Sound/sfx1.wav");
sfx.setMixer("CustomSubMixer");
sfx.play()

Clone this wiki locally