2020-01-18 20:07:55 +01:00
|
|
|
pcm_basic_sources = [
|
2020-01-18 20:07:09 +01:00
|
|
|
'CheckAudioFormat.cxx',
|
|
|
|
'AudioFormat.cxx',
|
|
|
|
'AudioParser.cxx',
|
2017-12-29 17:12:55 +01:00
|
|
|
'SampleFormat.cxx',
|
|
|
|
'Interleave.cxx',
|
2019-06-17 11:10:33 +02:00
|
|
|
'Buffer.cxx',
|
2019-06-16 12:11:44 +02:00
|
|
|
'Export.cxx',
|
|
|
|
'Dop.cxx',
|
2017-12-29 17:12:55 +01:00
|
|
|
'Volume.cxx',
|
|
|
|
'Silence.cxx',
|
2019-06-17 11:10:33 +02:00
|
|
|
'Mix.cxx',
|
|
|
|
'Pack.cxx',
|
2017-12-29 17:12:55 +01:00
|
|
|
'Order.cxx',
|
2019-06-17 11:10:33 +02:00
|
|
|
'Dither.cxx',
|
2017-12-29 17:12:55 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
if get_option('dsd')
|
2020-01-18 20:07:55 +01:00
|
|
|
pcm_basic_sources += [
|
2017-12-29 17:12:55 +01:00
|
|
|
'Dsd16.cxx',
|
|
|
|
'Dsd32.cxx',
|
|
|
|
'PcmDsd.cxx',
|
2020-01-14 17:41:07 +01:00
|
|
|
'Dsd2Pcm.cxx',
|
2017-12-29 17:12:55 +01:00
|
|
|
]
|
|
|
|
endif
|
|
|
|
|
2020-01-18 20:07:55 +01:00
|
|
|
pcm_basic = static_library(
|
|
|
|
'pcm_basic',
|
|
|
|
pcm_basic_sources,
|
|
|
|
include_directories: inc,
|
|
|
|
dependencies: [
|
|
|
|
util_dep,
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
pcm_basic_dep = declare_dependency(
|
|
|
|
link_with: pcm_basic,
|
|
|
|
)
|
|
|
|
|
|
|
|
pcm_sources = [
|
|
|
|
'Convert.cxx',
|
|
|
|
'PcmChannels.cxx',
|
|
|
|
'PcmFormat.cxx',
|
|
|
|
'FormatConverter.cxx',
|
|
|
|
'ChannelsConverter.cxx',
|
|
|
|
'GlueResampler.cxx',
|
|
|
|
'FallbackResampler.cxx',
|
|
|
|
'ConfiguredResampler.cxx',
|
|
|
|
]
|
|
|
|
|
2017-12-29 17:12:55 +01:00
|
|
|
libsamplerate_dep = dependency('samplerate', version: '>= 0.1.3', required: get_option('libsamplerate'))
|
|
|
|
if libsamplerate_dep.found()
|
|
|
|
conf.set('ENABLE_LIBSAMPLERATE', true)
|
|
|
|
pcm_sources += 'LibsamplerateResampler.cxx'
|
|
|
|
endif
|
|
|
|
|
|
|
|
soxr_dep = dependency('soxr', required: get_option('soxr'))
|
|
|
|
if soxr_dep.found()
|
|
|
|
conf.set('ENABLE_SOXR', true)
|
|
|
|
pcm_sources += 'SoxrResampler.cxx'
|
|
|
|
endif
|
|
|
|
|
|
|
|
pcm = static_library(
|
|
|
|
'pcm',
|
|
|
|
pcm_sources,
|
|
|
|
include_directories: inc,
|
|
|
|
dependencies: [
|
|
|
|
util_dep,
|
2020-01-18 20:07:55 +01:00
|
|
|
pcm_basic_dep,
|
2017-12-29 17:12:55 +01:00
|
|
|
libsamplerate_dep,
|
|
|
|
soxr_dep,
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
pcm_dep = declare_dependency(
|
|
|
|
link_with: pcm,
|
|
|
|
)
|