Skip to content

Commit 36b1c88

Browse files
committed
Fixed build
1 parent ad7ffe3 commit 36b1c88

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/codecs/music_fluidsynth.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,25 +141,25 @@ typedef struct {
141141

142142
static void FLUIDSYNTH_Delete(void *context);
143143

144-
static int SDLCALL fluidsynth_check_soundfont(const char *path, void *data)
144+
static SDL_bool SDLCALL fluidsynth_check_soundfont(const char *path, void *data)
145145
{
146146
SDL_IOStream *io = SDL_IOFromFile(path, "rb");
147147

148148
(void)data;
149149
if (io) {
150150
SDL_CloseIO(io);
151-
return 1;
151+
return SDL_TRUE;
152152
} else {
153153
SDL_SetError("Failed to access the SoundFont %s", path);
154-
return 0;
154+
return SDL_FALSE;
155155
}
156156
}
157157

158-
static int SDLCALL fluidsynth_load_soundfont(const char *path, void *data)
158+
static SDL_bool SDLCALL fluidsynth_load_soundfont(const char *path, void *data)
159159
{
160160
/* If this fails, it's too late to try Timidity so pray that at least one works. */
161161
fluidsynth.fluid_synth_sfload((fluid_synth_t*) data, path, 1);
162-
return 1;
162+
return SDL_TRUE;
163163
}
164164

165165
static int FLUIDSYNTH_Open(const SDL_AudioSpec *spec)

src/codecs/native_midi/native_midi_macosx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ typedef struct {
129129
CFURLRef default_url;
130130
} macosx_load_soundfont_ctx;
131131

132-
static int SDLCALL
132+
static SDL_bool SDLCALL
133133
macosx_load_soundfont(const char *path, void *data)
134134
{
135135
CFURLRef url;

0 commit comments

Comments
 (0)