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) {
|
AUDIO_RENDERER_CALLBACKS* platform_get_audio(enum platform system, char* audio_device) {
|
||||||
switch (system) {
|
switch (system) {
|
||||||
|
case FAKE:
|
||||||
|
return NULL;
|
||||||
#ifdef HAVE_SDL
|
#ifdef HAVE_SDL
|
||||||
case SDL:
|
case SDL:
|
||||||
return &audio_callbacks_sdl;
|
return &audio_callbacks_sdl;
|
||||||
@ -184,9 +186,8 @@ AUDIO_RENDERER_CALLBACKS* platform_get_audio(enum platform system, char* audio_d
|
|||||||
case PI:
|
case PI:
|
||||||
if (audio_device == NULL || strcmp(audio_device, "local") == 0 || strcmp(audio_device, "hdmi") == 0)
|
if (audio_device == NULL || strcmp(audio_device, "local") == 0 || strcmp(audio_device, "hdmi") == 0)
|
||||||
return (PAUDIO_RENDERER_CALLBACKS) dlsym(RTLD_DEFAULT, "audio_callbacks_omx");
|
return (PAUDIO_RENDERER_CALLBACKS) dlsym(RTLD_DEFAULT, "audio_callbacks_omx");
|
||||||
|
// fall-through
|
||||||
#endif
|
#endif
|
||||||
case FAKE:
|
|
||||||
return NULL;
|
|
||||||
default:
|
default:
|
||||||
#ifdef HAVE_PULSE
|
#ifdef HAVE_PULSE
|
||||||
if (audio_pulse_init(audio_device))
|
if (audio_pulse_init(audio_device))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user