INCLUDE(av_plugin)


SET(ADM_av_alsa_SRCS ADM_deviceALSA.cpp)

ADD_AUDIO_DEVICE(ADM_av_alsaDMix  ${ADM_av_alsa_SRCS})
ADD_TARGET_CFLAGS(ADM_av_alsaDMix -DADM_ADEVICE_DMIX )
TARGET_LINK_LIBRARIES(ADM_av_alsaDMix PRIVATE ${ASOUND_LIBRARY})

INIT_AUDIO_DEVICE(ADM_av_alsaDMix)
INSTALL_AUDIO_DEVICE(ADM_av_alsaDMix)

ADD_AUDIO_DEVICE(ADM_av_alsaHw  ${ADM_av_alsa_SRCS})
ADD_TARGET_CFLAGS(ADM_av_alsaHw -DADM_ADEVICE_HW)
TARGET_LINK_LIBRARIES(ADM_av_alsaHw PRIVATE ${ASOUND_LIBRARY})

INIT_AUDIO_DEVICE(ADM_av_alsaHw)
INSTALL_AUDIO_DEVICE(ADM_av_alsaHw)


ADD_AUDIO_DEVICE(ADM_av_alsaDefault  ${ADM_av_alsa_SRCS})
ADD_TARGET_CFLAGS(ADM_av_alsaDefault -DADM_ADEVICE_DEFAULT)
TARGET_LINK_LIBRARIES(ADM_av_alsaDefault PRIVATE ${ASOUND_LIBRARY})

INIT_AUDIO_DEVICE(ADM_av_alsaDefault)
INSTALL_AUDIO_DEVICE(ADM_av_alsaDefault)
