Actually, the format doesn't matter as long as Android can decode it.
private void playSound(int dResource) {
try{
if ( m_objMediaPlayer != null ) {
m_objMediaPlayer.stop();
m_objMediaPlayer = null;
}
m_objMediaPlayer = MediaPlayer.create(this, dResource);
m_objMediaPlayer.setLooping(false);
m_objMediaPlayer.start();
} catch( Exception ex ) {
Log.e( "Oops in playsound", "", ex );
}
}
0 comments: