Era-Dorta / gosu-android

A Gosu implementation for Android devices, undergraduate project
MIT License
31 stars 2 forks source link

Exception trying to play the song in the arkanoid example #5

Closed donv closed 11 years ago

donv commented 11 years ago

Hi!

This looks great! I tried the arkanoid example with Ruboto master, and it works perfectly except that I get an exception when trying to play the background song:

E/MediaPlayer(16127): Unable to to create media player
I/System.out(16127): initialize failed: setDataSourceFD failed.: status=0x80000000
I/System.out(16127): android.media.MediaPlayer.setDataSource(Native Method)
I/System.out(16127): android.media.MediaPlayer.setDataSource(MediaPlayer.java:1225)

Is this a known issue?

The beep plays fine.

ashes999 commented 11 years ago

What device did you test this on?

ashes999 commented 11 years ago

With the exception of some undefined game key constants, I'm still getting garbled images on my BlueStacks emulator and my actual phone (Galaxy Discover).

donv commented 11 years ago

I tested on Samsung Galaxy S3 and Emulator. I have no sound in the emulator.

Era-Dorta commented 11 years ago

Yes this is a known issue, It happens because Android gets crazy if several songs have the same type (i.e. mp3) but different frequencies. I'll just delete the songs that are not used in the examples.

donv commented 11 years ago

Got the song playing OK!

I did _NOT_ have to delete the explosion.wav, and I feel having explosions in any game is good :)