2016-08-12 15:42:30 +00:00
|
|
|
directsoundsink_sources = [
|
|
|
|
'gstdirectsoundsink.c',
|
2018-03-10 13:27:38 +00:00
|
|
|
'gstdirectsounddevice.c',
|
2016-08-12 15:42:30 +00:00
|
|
|
'gstdirectsoundplugin.c',
|
|
|
|
]
|
|
|
|
|
2018-03-10 13:27:38 +00:00
|
|
|
directsoundsink_device_flags = [
|
|
|
|
'-DGstDirectSoundDeviceProvider=GstDirectSoundSinkDeviceProvider',
|
|
|
|
'-DGstDirectSoundDeviceProviderClass=GstDirectSoundSinkDeviceProviderClass',
|
|
|
|
'-DGstDirectSoundDevice=GstDirectSoundSinkDevice',
|
|
|
|
'-DGstDirectSoundDeviceClass=GstDirectSoundSinkDeviceClass',
|
|
|
|
]
|
|
|
|
|
2016-08-12 15:42:30 +00:00
|
|
|
if host_machine.system() == 'windows' and cc.has_header('dsound.h')
|
2016-10-21 07:42:54 +00:00
|
|
|
directsoundsink_dep = [cc.find_library('dsound'), cc.find_library('winmm'), cc.find_library('ole32')]
|
2016-08-12 15:42:30 +00:00
|
|
|
|
2017-07-20 14:38:32 +00:00
|
|
|
gstdirectsoundsink = library('gstdirectsound',
|
2016-08-12 15:42:30 +00:00
|
|
|
directsoundsink_sources,
|
2018-03-10 13:27:38 +00:00
|
|
|
c_args : gst_plugins_good_args + directsoundsink_device_flags,
|
2016-08-12 15:42:30 +00:00
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [gstaudio_dep] + directsoundsink_dep,
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir)
|
|
|
|
endif
|