MCHLV
Member
Hello,
I have a question on how the volume in the sound editor work and how to adjust sounds from one another :
Is there a way to combine the audio_group_set_gain function with the volume settings from the audio editor ?
So that I can have one audio group with multiple sounds in it. Fine tune the volumes of all those sounds relatively from each other. And then use audio_group_set_gain in my game to allow the player to set the overall volume level.
When I try to use audio_group_set_gain (I used it once only in my singleton controler object upon creation), all sounds are played as if they were set with full volume in the editor (but it is not the case)
I tested it in an empty project: 1 room, 1 object, 1 default audio group, 1 sound.
- sound's volume setting is set to 0.01
- object has audio_group_set_gain(audiogroup_default,1, 0) in creation
- object has audio_play_sound(sound0,0,false) in mouse click
If I comment / delete audio_group_set_gain, then the sound is barely audible
If I keep it, then settings are ignoresd
So I understood that audio_set_gain overide my individual sounds settings. Is that the case ?
But then, is there an easy and proper way to adapt the sounds volumes for those that are too loud ?
Thank you !!!
M.
I have a question on how the volume in the sound editor work and how to adjust sounds from one another :
Is there a way to combine the audio_group_set_gain function with the volume settings from the audio editor ?
So that I can have one audio group with multiple sounds in it. Fine tune the volumes of all those sounds relatively from each other. And then use audio_group_set_gain in my game to allow the player to set the overall volume level.
When I try to use audio_group_set_gain (I used it once only in my singleton controler object upon creation), all sounds are played as if they were set with full volume in the editor (but it is not the case)
I tested it in an empty project: 1 room, 1 object, 1 default audio group, 1 sound.
- sound's volume setting is set to 0.01
- object has audio_group_set_gain(audiogroup_default,1, 0) in creation
- object has audio_play_sound(sound0,0,false) in mouse click
If I comment / delete audio_group_set_gain, then the sound is barely audible
If I keep it, then settings are ignoresd
So I understood that audio_set_gain overide my individual sounds settings. Is that the case ?
But then, is there an easy and proper way to adapt the sounds volumes for those that are too loud ?
Thank you !!!
M.