diff --git a/src/audio/switch/SDL_switchaudio.c b/src/audio/switch/SDL_switchaudio.c index 56211a5c7..04920713a 100644 --- a/src/audio/switch/SDL_switchaudio.c +++ b/src/audio/switch/SDL_switchaudio.c @@ -44,7 +44,7 @@ static const AudioRendererConfig arConfig = }; static int -SWITCHAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) +SWITCHAUDIO_OpenDevice(_THIS, const char *devname) { static const u8 sink_channels[] = {0, 1}; SDL_bool supported_format = SDL_FALSE; @@ -205,7 +205,7 @@ SWITCHAUDIO_ThreadInit(_THIS) } -static int +static SDL_bool SWITCHAUDIO_Init(SDL_AudioDriverImpl *impl) { impl->OpenDevice = SWITCHAUDIO_OpenDevice; @@ -215,7 +215,7 @@ SWITCHAUDIO_Init(SDL_AudioDriverImpl *impl) impl->CloseDevice = SWITCHAUDIO_CloseDevice; impl->ThreadInit = SWITCHAUDIO_ThreadInit; - impl->OnlyHasDefaultOutputDevice = 1; + impl->OnlyHasDefaultOutputDevice = SDL_TRUE; return 1; } diff --git a/src/joystick/switch/SDL_sysjoystick.c b/src/joystick/switch/SDL_sysjoystick.c index d77345352..1b42db330 100644 --- a/src/joystick/switch/SDL_sysjoystick.c +++ b/src/joystick/switch/SDL_sysjoystick.c @@ -250,6 +250,10 @@ static int SWITCH_JoystickSetLED(SDL_Joystick *joystick, Uint8 red, Uint8 green, return 0; } +static int SWITCH_JoystickSendEffect(SDL_Joystick *joystick, const void *data, int size) { + return SDL_Unsupported(); +} + static int SWITCH_JoystickSetSensorsEnabled(SDL_Joystick *joystick, SDL_bool enabled) { return SDL_Unsupported(); } @@ -342,6 +346,7 @@ SDL_JoystickDriver SDL_SWITCH_JoystickDriver = { SWITCH_JoystickRumbleTriggers, SWITCH_JoystickHasLED, SWITCH_JoystickSetLED, + SWITCH_JoystickSendEffect, SWITCH_JoystickSetSensorsEnabled, SWITCH_JoystickUpdate, SWITCH_JoystickClose,