Skip to content

Commit

Permalink
ao_sndio: modularize
Browse files Browse the repository at this point in the history
  • Loading branch information
t-8ch committed Feb 16, 2023
1 parent 4c22b63 commit 5b7baed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion audio/out/ao.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static struct mp_module audio_out_drivers[] = {
MP_MODULE_BUILTIN(audio_out_sdl),
#endif
#if HAVE_SNDIO
MP_MODULE_BUILTIN(audio_out_sndio),
MP_MODULE_MODULAR("sndio", audio_out_sndio),
#endif
MP_MODULE_BUILTIN(audio_out_null),
#if HAVE_COREAUDIO
Expand Down
3 changes: 1 addition & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -877,8 +877,7 @@ endif
sndio = dependency('sndio', required: get_option('sndio'))
features += {'sndio': sndio.found()}
if features['sndio']
dependencies += sndio
sources += files('audio/out/ao_sndio.c')
modules += [['ao-sndio', ['audio/out/ao_sndio.c'], [sndio]]]
endif

wasapi = cc.has_header_symbol('audioclient.h', 'IAudioClient', required: get_option('wasapi'))
Expand Down

0 comments on commit 5b7baed

Please sign in to comment.