brianbrown Posted June 27, 2014 Share Posted June 27, 2014 When playing a sound in a game on android, I get two errors: E/MediaPlayer : error (1, -2147483648)Uncaught Error loading: media/audiofile.m4a The audio works fine on desktop and iOS. Quote Link to comment Share on other sites More sharing options...
antbrooksuk Posted July 25, 2014 Share Posted July 25, 2014 Also have this issue Quote Link to comment Share on other sites More sharing options...
enpu Posted July 27, 2014 Share Posted July 27, 2014 You should use OGG format on Android. Quote Link to comment Share on other sites More sharing options...
brianbrown Posted July 28, 2014 Author Share Posted July 28, 2014 I've tried it with OGG format. I get the same error. Quote Link to comment Share on other sites More sharing options...
enpu Posted July 29, 2014 Share Posted July 29, 2014 Can you show your full code? Are you using latest Panda version? Quote Link to comment Share on other sites More sharing options...
antbrooksuk Posted July 29, 2014 Share Posted July 29, 2014 I have both m4a and ogg files in the folder. If I addAudio on the ogg file I get "Uncaught Error loading: media/audio/file.ogg" or using m4a its "Uncaught Error loading: media/audio/file.m4a" Quote Link to comment Share on other sites More sharing options...
enpu Posted July 29, 2014 Share Posted July 29, 2014 Can you show your full code? Or zip your project and send it to me, so i can take a look. Quote Link to comment Share on other sites More sharing options...
antbrooksuk Posted August 1, 2014 Share Posted August 1, 2014 ogg/m4a seem to load OK on Android 4.4. Android 4 - 4.3 seem to not be able to and error. Is it possible to add more types of audio support? Quote Link to comment Share on other sites More sharing options...
enpu Posted August 1, 2014 Share Posted August 1, 2014 Working fine here, can you send your audio files, so i can see if there is something wrong with them?Or try audio files from Flying Dog:https://github.com/ekelokorpi/flyingdog You can change supported audio formats by tweaking game.Audio.formats array:game.Audio.formats = [ { ext: 'm4a', type: 'audio/mp4; codecs="mp4a.40.5"' }, { ext: 'ogg', type: 'audio/ogg; codecs="vorbis"' }]; Engine will pick first supported one in the list and use that. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.