mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-03 16:25:31 +00:00
Fix Pi fallback to ALSA/PA after 7109301a
This commit is contained in:
parent
e8fbb2ec9c
commit
86140eb192
@ -176,6 +176,8 @@ DECODER_RENDERER_CALLBACKS* platform_get_video(enum platform system) {
|
||||
|
||||
AUDIO_RENDERER_CALLBACKS* platform_get_audio(enum platform system, char* audio_device) {
|
||||
switch (system) {
|
||||
case FAKE:
|
||||
return NULL;
|
||||
#ifdef HAVE_SDL
|
||||
case SDL:
|
||||
return &audio_callbacks_sdl;
|
||||
@ -184,9 +186,8 @@ AUDIO_RENDERER_CALLBACKS* platform_get_audio(enum platform system, char* audio_d
|
||||
case PI:
|
||||
if (audio_device == NULL || strcmp(audio_device, "local") == 0 || strcmp(audio_device, "hdmi") == 0)
|
||||
return (PAUDIO_RENDERER_CALLBACKS) dlsym(RTLD_DEFAULT, "audio_callbacks_omx");
|
||||
// fall-through
|
||||
#endif
|
||||
case FAKE:
|
||||
return NULL;
|
||||
default:
|
||||
#ifdef HAVE_PULSE
|
||||
if (audio_pulse_init(audio_device))
|
||||
|
Loading…
x
Reference in New Issue
Block a user