From 2dfde867a9c614fd274f7b1c1d573295599f57c1 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Fri, 8 Nov 2024 14:53:16 +0200 Subject: [PATCH] Syncing with the App Store branch --- AppleCommon/GBAudioClient.h | 6 +++--- AppleCommon/GBAudioClient.m | 2 +- Cocoa/Document.xib | 2 +- Core/debugger.c | 2 +- Core/gb.c | 10 +++++----- Core/gb.h | 2 +- JoyKit/JOYController.m | 2 +- Makefile | 4 ++-- SDL/configuration.h | 2 +- SDL/gui.c | 6 +++--- SDL/main.c | 2 +- iOS/GBBackgroundView.m | 12 +++++++++--- iOS/GBHub.m | 2 +- iOS/GBROMManager.m | 1 + iOS/GBROMViewController.m | 14 +++++++++----- iOS/GBSettingsViewController.m | 16 +++++++++++----- iOS/GBViewController.m | 5 ++++- iOS/main.m | 2 +- 18 files changed, 56 insertions(+), 36 deletions(-) diff --git a/AppleCommon/GBAudioClient.h b/AppleCommon/GBAudioClient.h index 03ed701..b361411 100644 --- a/AppleCommon/GBAudioClient.h +++ b/AppleCommon/GBAudioClient.h @@ -5,8 +5,8 @@ @property (nonatomic, strong) void (^renderBlock)(UInt32 sampleRate, UInt32 nFrames, GB_sample_t *buffer); @property (nonatomic, readonly) UInt32 rate; @property (nonatomic, readonly, getter=isPlaying) bool playing; --(void) start; --(void) stop; --(id) initWithRendererBlock:(void (^)(UInt32 sampleRate, UInt32 nFrames, GB_sample_t *buffer)) block +- (void)start; +- (void)stop; +- (id)initWithRendererBlock:(void (^)(UInt32 sampleRate, UInt32 nFrames, GB_sample_t *buffer)) block andSampleRate:(UInt32) rate; @end diff --git a/AppleCommon/GBAudioClient.m b/AppleCommon/GBAudioClient.m index e650aaf..c0c1b89 100644 --- a/AppleCommon/GBAudioClient.m +++ b/AppleCommon/GBAudioClient.m @@ -23,7 +23,7 @@ static OSStatus render( AudioComponentInstance audioUnit; } --(id) initWithRendererBlock:(void (^)(UInt32 sampleRate, UInt32 nFrames, GB_sample_t *buffer)) block +- (id)initWithRendererBlock:(void (^)(UInt32 sampleRate, UInt32 nFrames, GB_sample_t *buffer)) block andSampleRate:(UInt32) rate { if (!(self = [super init])) { diff --git a/Cocoa/Document.xib b/Cocoa/Document.xib index 47b8a4a..476aad7 100644 --- a/Cocoa/Document.xib +++ b/Cocoa/Document.xib @@ -225,7 +225,7 @@