put it back in

This commit is contained in:
Ralty
2025-07-20 08:55:55 +07:00
parent ec1b0175b0
commit 9483e5ff3a
+1 -1
View File
@@ -852,7 +852,7 @@ class FlxSound extends FlxBasic {
return _time;
}
function get_time():Float {
if (_channel == null || @:privateAccess !_channel.__isValid || AudioManager.context == null) return _time;
if (_channel == null || @:privateAccess !_channel.__isValid || /*AudioManager.context == null*/funkin.backend.system.Main.audioDisconnected) return _time;
final sourceTime = _source.currentTime - _source.offset - _offset;
if (!_source.playing || _realPitch <= 0) {