We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba110c6 commit 1e4c738Copy full SHA for 1e4c738
1 file changed
src/openfl/utils/Assets.hx
@@ -323,15 +323,15 @@ class Assets
323
#if (lime_funkin && lime_native)
324
var path = getPath(id);
325
var buffer = AudioBuffer.fromFile(path, true);
326
- return Sound.fromAudioBuffer(buffer);
+ if (buffer != null) return Sound.fromAudioBuffer(buffer);
327
#elseif (lime_vorbis && lime > "7.9.0")
328
329
var vorbisFile = VorbisFile.fromFile(path);
330
var buffer = AudioBuffer.fromVorbisFile(vorbisFile);
331
332
- #else
333
- return getSound(id, useCache);
334
#end
+
+ return getSound(id, useCache);
335
}
336
337
/**
0 commit comments