Skip to content

Commit 0adddad

Browse files
committed
ANDROID: use sound stream for games
1 parent e49438a commit 0adddad

File tree

1 file changed

+1
-1
lines changed
  • src/platform/android/src/net/sourceforge/smallbasic

1 file changed

+1
-1
lines changed

src/platform/android/src/net/sourceforge/smallbasic/Sound.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public boolean isSilent() {
3535
public void play() {
3636
if (!_silent) {
3737
try {
38-
AudioTrack audioTrack = new AudioTrack(AudioManager.STREAM_RING,
38+
AudioTrack audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC,
3939
AUDIO_SAMPLE_RATE, AudioFormat.CHANNEL_OUT_MONO,
4040
AudioFormat.ENCODING_PCM_16BIT, _sound.length, AudioTrack.MODE_STATIC);
4141
if (audioTrack.write(_sound, 0, _sound.length) == _sound.length) {

0 commit comments

Comments
 (0)