--- media/audio/BUILD.gn.orig 2021-01-25 11:26:59 UTC +++ media/audio/BUILD.gn @@ -242,7 +242,7 @@ source_set("audio") { ] } - if (is_linux || is_chromeos) { + if ((is_linux || is_chromeos) && !use_sndio) { sources += [ "linux/audio_manager_linux.cc" ] } @@ -305,6 +305,17 @@ source_set("audio") { } else { deps += [ ":libpulse_stubs" ] } + } + + if (use_sndio) { + libs += [ "sndio" ] + sources += [ + "openbsd/audio_manager_openbsd.cc", + "sndio/sndio_input.cc", + "sndio/sndio_input.h", + "sndio/sndio_output.cc", + "sndio/sndio_output.h", + ] } if (is_fuchsia) {