[Scummvm-git-logs] scummvm master -> ba57ad3a9d8ac893363be779089cb6d12b8ce31e

lephilousophe noreply at scummvm.org
Mon Sep 9 16:29:03 UTC 2024


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:
ba57ad3a9d ANDROID: Release the AudioTrack instead of stopping it


Commit: ba57ad3a9d8ac893363be779089cb6d12b8ce31e
    https://github.com/scummvm/scummvm/commit/ba57ad3a9d8ac893363be779089cb6d12b8ce31e
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2024-09-09T18:27:27+02:00

Commit Message:
ANDROID: Release the AudioTrack instead of stopping it

Stopping throws an exception when the audio track is not initialized.
Releasing is what we want: it stops the track, ignores the error and do
more cleanups.

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 ede71d2863f..d8891cf2ad5 100644
--- a/backends/platform/android/org/scummvm/scummvm/ScummVM.java
+++ b/backends/platform/android/org/scummvm/scummvm/ScummVM.java
@@ -326,7 +326,7 @@ public abstract class ScummVM implements SurfaceHolder.Callback,
 
 	private void deinitAudio() {
 		if (_audio_track != null)
-			_audio_track.stop();
+			_audio_track.release();
 
 		_audio_track = null;
 		_buffer_size = 0;




More information about the Scummvm-git-logs mailing list