Skip to content

Commit

Permalink
Merge pull request #1498 from player-03/loadAudioBuffer
Browse files Browse the repository at this point in the history
Fix error when loading embedded audio.
  • Loading branch information
player-03 authored Dec 20, 2021
2 parents 8ab755d + 9f6da5e commit 2f35e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lime/utils/AssetLibrary.hx
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ class AssetLibrary
}
else if (classTypes.exists(id))
{
return Future.withValue(Type.createInstance(classTypes.get(id), []));
return Future.withValue(AudioBuffer.fromBytes(cast(Type.createInstance(classTypes.get(id), []), Bytes)));
}
else
{
Expand Down

0 comments on commit 2f35e0b

Please sign in to comment.