summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-03-10 18:49:59 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2018-03-10 18:54:59 +0530
commit10195373442501693682ddaf651125cfeea9aa7b (patch)
treee2c2675474597ce7d5e06492e2e32df8e37196e8
parenta2f5485893bd3343b5a80eaa0f6ceb7b9c7a0ecb (diff)
meson: Add deviceprovider changes to directsoundsrc
These were missed when they were added to Makefile.am
-rw-r--r--sys/directsound/meson.build11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/directsound/meson.build b/sys/directsound/meson.build
index efe9a1ec7..81e780ccd 100644
--- a/sys/directsound/meson.build
+++ b/sys/directsound/meson.build
@@ -1,14 +1,23 @@
directsoundsrc_sources = [
'gstdirectsoundsrc.c',
+ 'gstdirectsounddevice.c',
'gstdirectsoundplugin.c',
]
+directsoundsrc_device_flags = [
+ '-DGstDirectSoundDeviceProvider=GstDirectSoundSrcDeviceProvider',
+ '-DGstDirectSoundDeviceProviderClass=GstDirectSoundSrcDeviceProviderClass',
+ '-DGstDirectSoundDevice=GstDirectSoundSrcDevice',
+ '-DGstDirectSoundDeviceClass=GstDirectSoundSrcDeviceClass',
+ '-DGST_DIRECTSOUND_SRC_DEVICE_PROVIDER=1'
+]
+
if host_system == 'windows' and cc.has_header('dsound.h')
directsoundsrc_dep = [cc.find_library('dsound'), cc.find_library('winmm'), cc.find_library('ole32')]
gstdirectsoundsrc = library('gstdirectsoundsrc',
directsoundsrc_sources,
- c_args : gst_plugins_bad_args,
+ c_args : gst_plugins_bad_args + directsoundsrc_device_flags,
include_directories : [configinc],
dependencies : [gstaudio_dep] + directsoundsrc_dep,
install : true,