opnsense-ports/devel/electron32/files/patch-media_audio_BUILD.gn
Franco Fichtner fd3bf1794a */*: sync with upstream
Taken from: FreeBSD
2024-09-23 09:02:17 +02:00

27 lines
647 B
Text

--- media/audio/BUILD.gn.orig 2024-08-30 11:29:36 UTC
+++ media/audio/BUILD.gn
@@ -271,9 +271,23 @@ source_set("audio") {
deps += [ "//media/base/android:media_jni_headers" ]
}
- if (is_linux || is_chromeos) {
+ if ((is_linux || is_chromeos) && !is_bsd) {
sources += [ "linux/audio_manager_linux.cc" ]
}
+
+ if (is_bsd) {
+ sources += [ "sndio/audio_manager_sndio.cc" ]
+ }
+
+ if (use_sndio) {
+ libs += [ "sndio" ]
+ sources += [
+ "sndio/sndio_input.cc",
+ "sndio/sndio_input.h",
+ "sndio/sndio_output.cc",
+ "sndio/sndio_output.h"
+ ]
+ }
if (use_alsa) {
libs += [ "asound" ]