Hi,
I am using the following code to play an audio file.
MediaPlayer mp = new MediaPlayer();
mp.setDataSource("sdcard/Music/test.amr");
mp.prepare();
mp.setVolume(1.0f, 1.0f);
mp.start();
This plays the file but at the same media volume that's set on the
device. mp.setVolume(1.0f, 1.0f) doesn't seem to work.
Since I am testing speech simulation in my app, I need the file to
play at the maximum volume always. Or Is there another way I can set
the media volume to max programatically?
Thanks
Yasser
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en