From 36b1c886d3559fba27182b77318c5de5e434fc42 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 27 Aug 2024 17:45:03 -0700
Subject: [PATCH] Fixed build
---
src/codecs/music_fluidsynth.c | 10 +++++-----
src/codecs/native_midi/native_midi_macosx.c | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/codecs/music_fluidsynth.c b/src/codecs/music_fluidsynth.c
index 88a848ae..7761d2e5 100644
--- a/src/codecs/music_fluidsynth.c
+++ b/src/codecs/music_fluidsynth.c
@@ -141,25 +141,25 @@ typedef struct {
static void FLUIDSYNTH_Delete(void *context);
-static int SDLCALL fluidsynth_check_soundfont(const char *path, void *data)
+static SDL_bool SDLCALL fluidsynth_check_soundfont(const char *path, void *data)
{
SDL_IOStream *io = SDL_IOFromFile(path, "rb");
(void)data;
if (io) {
SDL_CloseIO(io);
- return 1;
+ return SDL_TRUE;
} else {
SDL_SetError("Failed to access the SoundFont %s", path);
- return 0;
+ return SDL_FALSE;
}
}
-static int SDLCALL fluidsynth_load_soundfont(const char *path, void *data)
+static SDL_bool SDLCALL fluidsynth_load_soundfont(const char *path, void *data)
{
/* If this fails, it's too late to try Timidity so pray that at least one works. */
fluidsynth.fluid_synth_sfload((fluid_synth_t*) data, path, 1);
- return 1;
+ return SDL_TRUE;
}
static int FLUIDSYNTH_Open(const SDL_AudioSpec *spec)
diff --git a/src/codecs/native_midi/native_midi_macosx.c b/src/codecs/native_midi/native_midi_macosx.c
index 744e3919..6bec023e 100644
--- a/src/codecs/native_midi/native_midi_macosx.c
+++ b/src/codecs/native_midi/native_midi_macosx.c
@@ -129,7 +129,7 @@ typedef struct {
CFURLRef default_url;
} macosx_load_soundfont_ctx;
-static int SDLCALL
+static SDL_bool SDLCALL
macosx_load_soundfont(const char *path, void *data)
{
CFURLRef url;