mercredi 5 août 2015

openfl - audio doesn't work on cpp target


I've added <assets path="assets/audio" rename="audio" /> to the application.xml file.

And I load the "mp3" files in the audio folder by calling Assets.getSound("2_3_1.mp3");, and then use the .play(); method on that (sound) object to play the file.

The sounds play in flash target. But don't play on cpp targets. I'm mainly targeting Android (cpp) and iOS (c#) targets for my app.

When debugging for windows (cpp) target, it shows these errors in console:

Sound.hx:99: Error: Could not load "audio/2_3_1.mp3"
Error opening sound file, unsupported type.
Error opening sound data
Done(0)



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire