File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -141,25 +141,25 @@ typedef struct {
141141
142142static 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
165165static int FLUIDSYNTH_Open (const SDL_AudioSpec * spec )
Original file line number Diff line number Diff 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
133133macosx_load_soundfont (const char * path , void * data )
134134{
135135 CFURLRef url ;
You can’t perform that action at this time.
0 commit comments