MoritzBrueckner / aura

A fast and lightweight 3D audio engine for Kha.
41 stars 3 forks source link

Mix channels not working when added to Aura.masterChannel. #7

Closed moisesjpelaez closed 6 months ago

moisesjpelaez commented 6 months ago

When I try to play an audio, it only plays when is assigned to the 'master' channel or without any channel assigned, some examples:

Aura.createUncompBufferChannel(music, true).play() -> works Aura.createUncompBufferChannel(music, true, Aura.mixChannels["master"]).play() -> works Aura.createUncompBufferChannel(music, true, Aura.mixChannels["music"]).play() -> doesn't work Aura.createUncompBufferChannel(music, true, Aura.mixChannels["fx"]).play() -> doesn't work

or

var customMixChannel = Aura.createMixChannel("custom");
customMixChannel.setMixChannel(Aura.masterChannel);
Aura.createUncompBufferChannel(music, true, customMixChannel).play(); -> doesn't work

There are no errors in the console and I also traced Aura.mixChannels, which returned me a dictionary with all the channels: "master", "music", "fx" and "custom".

Using Aura in Armory 2024.02.