i am a dumbass

This commit is contained in:
Ralty
2025-11-26 20:13:50 +07:00
parent eccaa77f0e
commit cd631c6eda
@@ -87,14 +87,6 @@ class NativeAudioSource {
inline private static function getFloat(x:Int64):Float return x.high * 4294967296. + (x.low >> 0);
inline private static function gc() {
#if neko
neko.vm.Gc.run(false);
#elseif cpp
cpp.vm.Gc.run(false);
#end
}
// Backward Compatibility Variables
var handle(get, set):ALSource; inline function get_handle() return source; inline function set_handle(v) return source = v;
var timer(get, set):Timer; inline function get_timer() return completeTimer; inline function set_timer(v) return completeTimer = v;
@@ -494,7 +486,6 @@ class NativeAudioSource {
if ((process = (v = STREAM_MAX_BUFFERS - source.requestBuffers) > process ? process : v) > 0) source.fillBuffers(process);
}
streamMutex.release();
gc();
}
threadRunning = false;
@@ -517,7 +508,7 @@ class NativeAudioSource {
AL.sourcePlay(source.source);
source.updateCompleteTimer();
}
if (source,streamEnded && source.requestBuffers == source.queuedBuffers) source.removeStream();
if (source.streamEnded && source.requestBuffers == source.queuedBuffers) source.removeStream();
}
}