PixelLicker
Member
Hello,
I am relatively new to using the audio functions of GM, but I found two issues that I am not sure are bugs or not.
1. I am setting a sound to a local var with:
Then I am trying to set the gain with:
I have checked the local var and it is being set to a value, but the code is not working. Is this a bug or am I simply not understanding how to store the index of that sound instance?
2. The docs for audio_sound_gain have a few formatting issues. The example there states:
The indents seem off and the first line is missing all the parameters of that expression.
If anyone can clarify the issue with using the stored index, I would really appreciate it.
I am relatively new to using the audio functions of GM, but I found two issues that I am not sure are bugs or not.
1. I am setting a sound to a local var with:
GML:
currentBGM = audio_play_sound(snd_area00_wave_bgm_loop, 1, true);
Code:
audio_sound_gain(currentBGM, 1, 500);
2. The docs for audio_sound_gain have a few formatting issues. The example there states:
Code:
if val
{
var snd = audio_play_sound(snd_fountain);
audio_sound_gain(snd, 0, 0);
audio_sound_gain(snd, 1, 5000);
}
If anyone can clarify the issue with using the stored index, I would really appreciate it.