--- /dev/null
+sndfile_dep = dependency('sndfile', version: '>= 1.0.16', required: get_option('sndfile'))
+
+if sndfile_dep.found()
+ gstsndfile = library('gstsndfile',
+ 'gstsf.c', 'gstsfdec.c', # 'gstsfsink.c', 'gstsfsrc.c',
+ c_args: gst_plugins_bad_args,
+ include_directories: [configinc],
+ dependencies: [gstaudio_dep, gst_dep, sndfile_dep],
+ install: true,
+ install_dir: plugins_install_dir,
+ )
+ pkgconfig.generate(gstsndfile, install_dir: plugins_pkgconfig_install_dir)
+endif
option('sctp', type : 'feature', value : 'auto', description : 'SCTP plugin')
option('shm', type : 'feature', value : 'auto', description : 'Shared memory source/sink plugin')
option('smoothstreaming', type : 'feature', value : 'auto', description : 'Microsoft Smooth Streaming demuxer plugin')
+option('sndfile', type : 'feature', value : 'auto', description : 'libsndfile plugin')
option('soundtouch', type : 'feature', value : 'auto', description : 'Audio pitch controller & BPM detection plugin')
option('spandsp', type : 'feature', value : 'auto', description : 'Packet loss concealment audio plugin')
option('srt', type : 'feature', value : 'auto', description : 'Secure, Reliable, Transport client/server network source/sink plugin')