mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-20 15:27:18 +00:00
Make Alsa audio backend optional
This commit is contained in:
1 parent
3461d17119
commit
bbeffe2782
3 files changed
+17
-4
No files matched your search
@@ -27,7 +27,9 @@
|
||||
|
||||
extern const char* audio_device;
|
||||
|
||||
#ifdef HAVE_ALSA
|
||||
extern AUDIO_RENDERER_CALLBACKS audio_callbacks_alsa;
|
||||
#endif
|
||||
#ifdef HAVE_SDL
|
||||
extern AUDIO_RENDERER_CALLBACKS audio_callbacks_sdl;
|
||||
#endif
|
||||
|
||||
@@ -111,7 +111,9 @@ AUDIO_RENDERER_CALLBACKS* platform_get_audio(enum platform system) {
|
||||
if (audio_pulse_init())
|
||||
return &audio_callbacks_pulse;
|
||||
#endif
|
||||
#ifdef HAVE_ALSA
|
||||
return &audio_callbacks_alsa;
|
||||
#endif
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user