From b4bdcf1f77c28e1dfdd0ebdcd774b0dd7cdd0bff Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 19 Feb 2017 18:35:08 +0100 Subject: Reorder VLC transcode options It is hoped that converting to signed 16-bit after resampling is going to fix the issue that sometimes it choses to use the ugly_resampler instead of the libsamplerate-based one. The latter works with floats. --- src/VLCInput.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/VLCInput.cpp') diff --git a/src/VLCInput.cpp b/src/VLCInput.cpp index 0ce4f00..e7dfa21 100644 --- a/src/VLCInput.cpp +++ b/src/VLCInput.cpp @@ -143,11 +143,11 @@ int VLCInput::prepare() // VLC options std::stringstream transcode_options_ss; - transcode_options_ss << "acodec=s16l"; - transcode_options_ss << ",samplerate=" << m_rate; + transcode_options_ss << "samplerate=" << m_rate; if (not m_gain.empty()) { transcode_options_ss << ",afilter=compressor"; } + transcode_options_ss << ",acodec=s16l"; string transcode_options = transcode_options_ss.str(); char smem_options[512]; -- cgit v1.2.3