[Scummvm-git-logs] scummvm master -> 5dd9c553f6171ae63cb59b0fdcbe6838b4d971c5

mikrosk noreply at scummvm.org
Thu Oct 15 22:59:38 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
5dd9c553f6 BACKENDS: SDL: Use 22050 Hz output rate on Atari


Commit: 5dd9c553f6171ae63cb59b0fdcbe6838b4d971c5
    https://github.com/scummvm/scummvm/commit/5dd9c553f6171ae63cb59b0fdcbe6838b4d971c5
Author: Miro Kropacek (miro.kropacek at gmail.com)
Date: 2026-10-16T08:59:24+10:00

Commit Message:
BACKENDS: SDL: Use 22050 Hz output rate on Atari

Commit 387ceddef1d picked the Falcon rate closest to 44100 Hz. Request
22050 Hz instead to a) be less CPU-heavy b) give the FireBee, Falcon +
external DSP clock and other XBIOS backends chance to use a frequency
native to most of the games.

If there 22050 Hz is not supported, it will offer the nearest one
available, same as Atari mixer does.

Changed paths:
    backends/mixer/atari/atari-mixer.cpp
    backends/mixer/sdl/sdl-mixer.cpp


diff --git a/backends/mixer/atari/atari-mixer.cpp b/backends/mixer/atari/atari-mixer.cpp
index 3c47d217dc2..cfdbc9435aa 100644
--- a/backends/mixer/atari/atari-mixer.cpp
+++ b/backends/mixer/atari/atari-mixer.cpp
@@ -35,11 +35,11 @@
 #ifdef DISABLE_FANCY_THEMES
 #define DEFAULT_OUTPUT_RATE			11025
 #define DEFAULT_OUTPUT_CHANNELS		1
-#define DEFAULT_SAMPLES				512		// 2 * 46ms (42ms at 12292 Hz) latency
+#define DEFAULT_SAMPLES				512		// 2 * 46ms (52ms at 9834 Hz) latency
 #else
 #define DEFAULT_OUTPUT_RATE			22050
 #define DEFAULT_OUTPUT_CHANNELS		2
-#define DEFAULT_SAMPLES				1024	// 2 * 46ms (42ms at 24585 Hz) latency
+#define DEFAULT_SAMPLES				1024	// 2 * 46ms (52ms at 19668 Hz) latency
 #endif
 
 static USoundContext usoundContext;
diff --git a/backends/mixer/sdl/sdl-mixer.cpp b/backends/mixer/sdl/sdl-mixer.cpp
index 3107e1b8e6a..31538ea33e8 100644
--- a/backends/mixer/sdl/sdl-mixer.cpp
+++ b/backends/mixer/sdl/sdl-mixer.cpp
@@ -32,7 +32,7 @@
 #if defined(PLAYSTATION3) || defined(PSP2) || defined(NINTENDO_SWITCH)
 #define SAMPLES_PER_SEC 48000
 #elif defined(__MINT__)
-#define SAMPLES_PER_SEC 49170
+#define SAMPLES_PER_SEC 22050
 #else
 #define SAMPLES_PER_SEC 44100
 #endif




More information about the Scummvm-git-logs mailing list