We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 78cb00a + 25e1b46 commit 27f5baaCopy full SHA for 27f5baa
scripts/functions/Function_Sound.js
@@ -109,7 +109,11 @@ function audio_update()
109
110
// Update and apply gains
111
g_AudioGroups.forEach(_group => _group.gain.update());
112
- audio_sampledata.forEach(_asset => _asset.gain.update());
+ audio_sampledata.forEach(_asset => {
113
+ if (_asset != null) {
114
+ _asset.gain.update();
115
+ }
116
+ });
117
audio_sounds.forEach(_voice => _voice.updateGain());
118
}
119
@@ -3112,9 +3116,12 @@ function audio_destroy_stream(_soundid)
3112
3116
audio_stop_sound(_soundid);
3113
3117
audio_sampledata[_soundid] = null;
3114
3118
3119
+
3120
+ return 1;
3115
3121
-}
3122
3123
+ return -1;
3124
+}
3125
3126
function allocateBufferSound( )
3127
{
0 commit comments