diff options
author | Andrew Krasavin <noiseless-ak@yandex.ru> | 2022-01-11 19:23:52 +0300 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2022-01-22 18:44:34 +0000 |
commit | b01598510f952f291e9f6314352898a6a40532ba (patch) | |
tree | c2a3a98c5735946bf63a2388f54201a35ba52bfa /meson.build | |
parent | adc32e25e061b8a9ca927e17ae5cbf88e394dd16 (diff) | |
download | mpv-b01598510f952f291e9f6314352898a6a40532ba.tar.bz2 mpv-b01598510f952f291e9f6314352898a6a40532ba.tar.xz |
ao_sndio: bugfix and small refactoring for #8314
Changes:
* fixed hangups in the loop function and in some other cases
* refactoring according to @michaelforney's recommendations in #8314
* a few minor and/or cosmetic changes
* ability to build ao_sndio using meson
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 159ec0bd4a..c9f91f41a5 100644 --- a/meson.build +++ b/meson.build @@ -909,6 +909,13 @@ if sdl2_audio.allowed() sources += files('audio/out/ao_sdl.c') endif +sndio = dependency('sndio', required: get_option('sndio')) +if sndio.found() + dependencies += sndio + features += 'sndio' + sources += files('audio/out/ao_sndio.c') +endif + wasapi = cc.has_header_symbol('audioclient.h', 'IAudioClient', required: get_option('wasapi')) if wasapi features += 'wasapi' @@ -1779,6 +1786,7 @@ conf_data.set10('HAVE_SDL2_GAMEPAD', sdl2_gamepad.allowed()) conf_data.set10('HAVE_SDL2_VIDEO', sdl2_video.allowed()) conf_data.set10('HAVE_SHADERC', shaderc.found()) conf_data.set10('HAVE_SIXEL', sixel.found()) +conf_data.set10('HAVE_SNDIO', sndio.found()) conf_data.set10('HAVE_STDATOMIC', stdatomic.found()) conf_data.set10('HAVE_TA_LEAK_REPORT', get_option('ta-leak-report')) conf_data.set10('HAVE_TESTS', get_option('tests')) |