I tried the following code and the 3 notes were playing simultaneously. That method is triggered by a click on a button. However on the next click event it plays only one note and the app crashes. I want to play 3 different notes every time i click the button.(I chose those randomaly)
player = MediaPlayer.create(this, resIdFirstNote);
player.start();
player = MediaPlayer.create(this, resIdSecondNote);
player.start();
player = MediaPlayer.create(this, resIdThirdNote);
player.start();
player.release();
is it the player instance that overloads? and i should release it differently ? or is it something else?
Thx in advance Leon