diff --git a/source/states/LoadingState.hx b/source/states/LoadingState.hx index 21d906d0e27..86c9e7cda86 100644 --- a/source/states/LoadingState.hx +++ b/source/states/LoadingState.hx @@ -618,7 +618,7 @@ class LoadingState extends MusicBeatState { if (#if sys FileSystem.exists(file) || #end OpenFlAssets.exists(file, SOUND)) { - var sound:Sound = OpenFlAssets.getSound(file, false); + var sound:Sound = #if sys Sound.fromFile(file) #else OpenFlAssets.getSound(file, false) #end; mutex.acquire(); Paths.currentTrackedSounds.set(file, sound); mutex.release(); @@ -673,4 +673,4 @@ class LoadingState extends MusicBeatState return null; } -} \ No newline at end of file +}