Skip to content
Snippets Groups Projects
Commit 06dcae2f authored by Tristan Matthews's avatar Tristan Matthews
Browse files

coreaudio: fix warning and use as fallback for jack

Refs #60563

Change-Id: I1816f568824bf9a63403e945de6d3bf1df1f55f8
parent 02c01078
No related branches found
No related tags found
No related merge requests found
...@@ -355,6 +355,8 @@ sfl::AudioLayer* AudioPreference::createAudioLayer() ...@@ -355,6 +355,8 @@ sfl::AudioLayer* AudioPreference::createAudioLayer()
audioApi_ = PULSEAUDIO_API_STR; audioApi_ = PULSEAUDIO_API_STR;
#elif HAVE_ALSA #elif HAVE_ALSA
audioApi_ = ALSA_API_STR; audioApi_ = ALSA_API_STR;
#elif HAVE_COREAUDIO
audioApi_ = COREAUDIO_API_STR;
#else #else
throw; throw;
#endif #endif
...@@ -392,7 +394,6 @@ sfl::AudioLayer* AudioPreference::createAudioLayer() ...@@ -392,7 +394,6 @@ sfl::AudioLayer* AudioPreference::createAudioLayer()
} catch (const std::runtime_error &e) { } catch (const std::runtime_error &e) {
SFL_WARN("Could not create coreaudio layer. There will be no sound."); SFL_WARN("Could not create coreaudio layer. There will be no sound.");
} }
#else
return NULL; return NULL;
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment