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:
parent
d5e9e6ccfe
commit
e598afbe85
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user