KyleRansford
Member
I've added a volume adjustment to a game, and all is working. The BGM and SFX gain is lowered. But, with the BGM sounds I have in the default group "audiogroup_default" and I set the gain by choosing a percent using "audio_group_set_gain(audiogroup_default, 0.50, 0);" and so on. and I get the gain levelI with "current_volume_ = string(audio_sound_get_gain(audiogroup_default));" and draw it to the GUI with "draw_text_ext_transformed(320, 70, "BGM Volume " + current_volume_ + "%", 10, 1000, text_scale_, text_scale_, 0);"
This all works fine. But when I do the exact method with the SFX group that I made "SFX_Group". The gain is changed, but it doesn't display the gain level on the GUI. It just shows "0.50".
Is it because the "audio_sound_get_gain(audiogroup_default)" doesn't in fact work for sound groups? and thinks the "audiogroup_default" is not a real group but just sounds?
This all works fine. But when I do the exact method with the SFX group that I made "SFX_Group". The gain is changed, but it doesn't display the gain level on the GUI. It just shows "0.50".
Is it because the "audio_sound_get_gain(audiogroup_default)" doesn't in fact work for sound groups? and thinks the "audiogroup_default" is not a real group but just sounds?