(solved) audio_sound_gain not working on included audio files - Printable Version +- MFGG Forums (https://forums.mfgg.net) +-- Forum: MFGG (https://forums.mfgg.net/forumdisplay.php?fid=4) +--- Forum: Developer Discussion (https://forums.mfgg.net/forumdisplay.php?fid=10) +--- Thread: (solved) audio_sound_gain not working on included audio files (/showthread.php?tid=1222) |
(solved) audio_sound_gain not working on included audio files - smbmaster99 - 08-06-2018 EDIT: Nevermind rofllllllll i don't understand WHY but changing the time argument in the audio_sound_gain() function from 1 to 0 fixed it lol Hey there, my problem is pretty much in the thread title. I've been using Code: audio_sound_gain(index, volume, time) Code: audio_create_stream(filename) Can anyone help? RE: (solved) audio_sound_gain not working on included audio files - ReinlynxPSI - 08-09-2018 (08-06-2018, 09:18 PM)smbmaster99 Wrote: EDIT: Nevermind rofllllllll i don't understand WHY but changing the time argument in the audio_sound_gain() function from 1 to 0 fixed it lol My guess is that it works like the alarm events; the 0th frame is the "trigger" frame, which means that setting the step count to 0 sets it to the trigger frame without it activating. |