[Scummvm-git-logs] scummvm master -> 5d04286237ded0da8402b7dae06e3814187cd3cd
aquadran
noreply at scummvm.org
Thu Dec 9 21:04:32 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
5d04286237 ANDROID: Keep track of actual AudioTrack buffer size
Commit: 5d04286237ded0da8402b7dae06e3814187cd3cd
https://github.com/scummvm/scummvm/commit/5d04286237ded0da8402b7dae06e3814187cd3cd
Author: Andrea Boscarino (andywinxp at gmail.com)
Date: 2021-12-09T22:04:28+01:00
Commit Message:
ANDROID: Keep track of actual AudioTrack buffer size
Changed paths:
backends/platform/android/org/scummvm/scummvm/ScummVM.java
diff --git a/backends/platform/android/org/scummvm/scummvm/ScummVM.java b/backends/platform/android/org/scummvm/scummvm/ScummVM.java
index e875886abf..5d6d0a5a35 100644
--- a/backends/platform/android/org/scummvm/scummvm/ScummVM.java
+++ b/backends/platform/android/org/scummvm/scummvm/ScummVM.java
@@ -297,6 +297,10 @@ public abstract class ScummVM implements SurfaceHolder.Callback, Runnable {
_buffer_size,
AudioTrack.MODE_STREAM,
AudioManager.AUDIO_SESSION_ID_GENERATE);
+
+ // Keep track of the actual obtained audio buffer size, if supported
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
+ _buffer_size = _audio_track.getBufferSizeInFrames();
} else {
//support for Android KitKat or lower
_audio_track = new AudioTrack(AudioManager.STREAM_MUSIC,
More information about the Scummvm-git-logs
mailing list