Edition of the Sound component
Posted: Wed Feb 23, 2022 9:15 am
Hello,
In the ZGE documentation, it is said that the AudioMixer Channel Properties can go up to 16.
However, only channels 0 and 1 are working when testing the sound in it.
The same goes with Component @Playsound (Sound: mySound, Channel: 4);
Am I missing something?
Edit 1 :
My bad, I found it. Channels have to be activated in the Global Mixer tab, which is only displayable when selecting a sound Component, so not really global in terms of UI
So, as you play several sounds at the same time, the volume tends to get pretty intense. And some other time, sounds are not playing at all. That's why I had the idea of switching the channel each time a sound is played.
Edit 2 :
Oh... But modifying the Global Mixer also modify the AudioMixer Component when there is one...
Sorry, I only read the notice when it's clear that I don't understand how it's working
Edit 3 :
After a complete reading of the Audio documentation, I'm going to transform this topic into a more generic QA related to audio, as not everything is particularly clear regarding the UI and it's explanations
In the ZGE documentation, it is said that the AudioMixer Channel Properties can go up to 16.
However, only channels 0 and 1 are working when testing the sound in it.
The same goes with Component @Playsound (Sound: mySound, Channel: 4);
Am I missing something?
Edit 1 :
My bad, I found it. Channels have to be activated in the Global Mixer tab, which is only displayable when selecting a sound Component, so not really global in terms of UI

So, as you play several sounds at the same time, the volume tends to get pretty intense. And some other time, sounds are not playing at all. That's why I had the idea of switching the channel each time a sound is played.
Edit 2 :
Oh... But modifying the Global Mixer also modify the AudioMixer Component when there is one...
That's not very intuitive.ZGameEditor Help wrote:AudioMixer
A mixer for the real-time audio synthesizer. When a 2ref Sound component is selected in the editor, the AudioMixer custom editor is displayed as a separate page next to the audio custom editor.
The mixer is used for changing settings to different audio channels.
Note
To save the mixer settings, you must add an audiomixer component to your project. You can only have a single AudioMixer in one project.
Sorry, I only read the notice when it's clear that I don't understand how it's working

Edit 3 :
After a complete reading of the Audio documentation, I'm going to transform this topic into a more generic QA related to audio, as not everything is particularly clear regarding the UI and it's explanations