0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 12:02:16 +02:00

Increased sound volume.

This commit is contained in:
Edu Zamora 2009-12-09 17:50:07 +01:00
parent d5e9e6ccfe
commit e598afbe85

View File

@ -20,6 +20,7 @@ import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.media.MediaPlayer.OnCompletionListener;
import android.util.Log;
@ -68,6 +69,7 @@ public class Sound {
try
{
soundPlayer.setDataSource(soundPath);
soundPlayer.setVolume(AudioManager.STREAM_MUSIC, AudioManager.STREAM_MUSIC);
soundPlayer.prepare();
sounds.add(soundPlayer);