[Scummvm-git-logs] scummvm master -> 1419b7195228d0ea5d2c5859cb50413a9f109870

dwatteau noreply at scummvm.org
Mon Mar 16 13:45:37 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:
1419b71952 TTS: MACOSX: More NSSpeechSynthesizer tweaks for OSX 10.5


Commit: 1419b7195228d0ea5d2c5859cb50413a9f109870
    https://github.com/scummvm/scummvm/commit/1419b7195228d0ea5d2c5859cb50413a9f109870
Author: Donovan Watteau (contrib at dwatteau.fr)
Date: 2026-03-16T14:43:53+01:00

Commit Message:
TTS: MACOSX: More NSSpeechSynthesizer tweaks for OSX 10.5

Now seems to pass all related Testbed tests when built on OSX 10.5
(although building with an explicit `--enable-tts` is still required
at the moment).

OSX 10.4 is currently still out of reach, because the TTS code relies
on several 10.5+ NSSpeechSynthesizer features.

Changed paths:
    backends/text-to-speech/macosx/macosx-text-to-speech.mm


diff --git a/backends/text-to-speech/macosx/macosx-text-to-speech.mm b/backends/text-to-speech/macosx/macosx-text-to-speech.mm
index ecce0b7b26f..55d63de3374 100644
--- a/backends/text-to-speech/macosx/macosx-text-to-speech.mm
+++ b/backends/text-to-speech/macosx/macosx-text-to-speech.mm
@@ -25,14 +25,22 @@
 #include "backends/text-to-speech/macosx/macosx-text-to-speech.h"
 
 #if defined(USE_TTS) && defined(MACOSX)
+
 #include "common/translation.h"
+#include "backends/platform/sdl/macosx/macosx-compat.h"
+
 #include <AppKit/NSSpeechSynthesizer.h>
 #include <Foundation/NSArray.h>
 #include <Foundation/NSDictionary.h>
+#include <Foundation/NSEnumerator.h>
 #include <Foundation/NSString.h>
 #include <CoreFoundation/CFString.h>
 
+#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6
+ at interface MacOSXTextToSpeechManagerDelegate : NSObject {
+#else
 @interface MacOSXTextToSpeechManagerDelegate : NSObject<NSSpeechSynthesizerDelegate> {
+#endif
 	MacOSXTextToSpeechManager *_ttsManager;
 	BOOL _ignoreNextFinishedSpeaking;
 }




More information about the Scummvm-git-logs mailing list