Function prototype updates for SDL_switchaudio.c and SDL_sysjoystick.c

This commit is contained in:
Luke Street 2022-05-31 14:31:24 -04:00
parent 77d6f16906
commit 6948c1a72c
2 changed files with 8 additions and 3 deletions

View File

@ -44,7 +44,7 @@ static const AudioRendererConfig arConfig =
}; };
static int 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}; static const u8 sink_channels[] = {0, 1};
SDL_bool supported_format = SDL_FALSE; SDL_bool supported_format = SDL_FALSE;
@ -205,7 +205,7 @@ SWITCHAUDIO_ThreadInit(_THIS)
} }
static int static SDL_bool
SWITCHAUDIO_Init(SDL_AudioDriverImpl *impl) SWITCHAUDIO_Init(SDL_AudioDriverImpl *impl)
{ {
impl->OpenDevice = SWITCHAUDIO_OpenDevice; impl->OpenDevice = SWITCHAUDIO_OpenDevice;
@ -215,7 +215,7 @@ SWITCHAUDIO_Init(SDL_AudioDriverImpl *impl)
impl->CloseDevice = SWITCHAUDIO_CloseDevice; impl->CloseDevice = SWITCHAUDIO_CloseDevice;
impl->ThreadInit = SWITCHAUDIO_ThreadInit; impl->ThreadInit = SWITCHAUDIO_ThreadInit;
impl->OnlyHasDefaultOutputDevice = 1; impl->OnlyHasDefaultOutputDevice = SDL_TRUE;
return 1; return 1;
} }

View File

@ -250,6 +250,10 @@ static int SWITCH_JoystickSetLED(SDL_Joystick *joystick, Uint8 red, Uint8 green,
return 0; 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) { static int SWITCH_JoystickSetSensorsEnabled(SDL_Joystick *joystick, SDL_bool enabled) {
return SDL_Unsupported(); return SDL_Unsupported();
} }
@ -342,6 +346,7 @@ SDL_JoystickDriver SDL_SWITCH_JoystickDriver = {
SWITCH_JoystickRumbleTriggers, SWITCH_JoystickRumbleTriggers,
SWITCH_JoystickHasLED, SWITCH_JoystickHasLED,
SWITCH_JoystickSetLED, SWITCH_JoystickSetLED,
SWITCH_JoystickSendEffect,
SWITCH_JoystickSetSensorsEnabled, SWITCH_JoystickSetSensorsEnabled,
SWITCH_JoystickUpdate, SWITCH_JoystickUpdate,
SWITCH_JoystickClose, SWITCH_JoystickClose,