pcm/SoxrResampler: require libsoxr 0.1.2 or later
This commit is contained in:
parent
1410bcbce9
commit
27ba8c181f
2
NEWS
2
NEWS
|
@ -21,6 +21,8 @@ ver 0.24 (not yet released)
|
||||||
- opus: implement bitrate calculation
|
- opus: implement bitrate calculation
|
||||||
- sidplay: require libsidplayfp (drop support for the original sidplay)
|
- sidplay: require libsidplayfp (drop support for the original sidplay)
|
||||||
- wavpack: require libwavpack version 5
|
- wavpack: require libwavpack version 5
|
||||||
|
* resampler
|
||||||
|
- soxr: require libsoxr 0.1.2 or later
|
||||||
* player
|
* player
|
||||||
- add option "mixramp_analyzer" to scan MixRamp tags on-the-fly
|
- add option "mixramp_analyzer" to scan MixRamp tags on-the-fly
|
||||||
- "one-shot" consume mode
|
- "one-shot" consume mode
|
||||||
|
|
|
@ -239,9 +239,7 @@ SoxrPcmResampler::Close() noexcept
|
||||||
void
|
void
|
||||||
SoxrPcmResampler::Reset() noexcept
|
SoxrPcmResampler::Reset() noexcept
|
||||||
{
|
{
|
||||||
#if SOXR_THIS_VERSION >= SOXR_VERSION(0,1,2)
|
|
||||||
soxr_clear(soxr);
|
soxr_clear(soxr);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::span<const std::byte>
|
std::span<const std::byte>
|
||||||
|
|
|
@ -59,7 +59,7 @@ if libsamplerate_dep.found()
|
||||||
pcm_sources += 'LibsamplerateResampler.cxx'
|
pcm_sources += 'LibsamplerateResampler.cxx'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
soxr_dep = dependency('soxr', required: get_option('soxr'))
|
soxr_dep = dependency('soxr', version: '>= 0.1.2', required: get_option('soxr'))
|
||||||
if soxr_dep.found()
|
if soxr_dep.found()
|
||||||
conf.set('ENABLE_SOXR', true)
|
conf.set('ENABLE_SOXR', true)
|
||||||
pcm_sources += 'SoxrResampler.cxx'
|
pcm_sources += 'SoxrResampler.cxx'
|
||||||
|
|
Loading…
Reference in New Issue