-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Meta: Consolidate checking for the system audio backend
The goal here is to ensure we check for audio backends in a way that makes sense. On macOS, let's just always use Audio Unit (and thus avoid any checks for Pulse, to reduce needless/confusing build log noise). We will also only use the Qt audio backend if no other backend was found, rather than only checking for Pulse.
- Loading branch information
Showing
5 changed files
with
35 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
include_guard() | ||
|
||
# Audio backend -- how we output audio to the speakers. | ||
if (APPLE AND NOT IOS) | ||
set(LADYBIRD_AUDIO_BACKEND "AUDIO_UNIT") | ||
return() | ||
elseif (ANDROID) | ||
set(LADYBIRD_AUDIO_BACKEND "OBOE") | ||
return() | ||
elseif (NOT WIN32) | ||
find_package(PkgConfig REQUIRED) | ||
pkg_check_modules(PULSEAUDIO IMPORTED_TARGET libpulse) | ||
|
||
if (PULSEAUDIO_FOUND) | ||
set(LADYBIRD_AUDIO_BACKEND "PULSE") | ||
return() | ||
endif() | ||
endif() | ||
|
||
message(WARNING "No audio backend available") |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters