From c2863cf4bee6459f1bb72c73bcf83596051cf96d Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 24 Feb 2017 16:00:54 +0100 Subject: Improve VLC samplerate conversion by asking float samples Asking floats from VLC instead of signed 16-bit samples allows VLC to use the libsamplerate resampler instead of the ugly_resampler. Otherwise it might convert to s16l first, and refuse to use libsamplerate which is unable to work with that data format. --- src/VLCInput.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/VLCInput.h') diff --git a/src/VLCInput.h b/src/VLCInput.h index 5ef970b..16c6cbf 100644 --- a/src/VLCInput.h +++ b/src/VLCInput.h @@ -163,12 +163,12 @@ class VLCInput ssize_t m_read(uint8_t* buf, size_t length); /*! Buffer used in the callback functions for VLC */ - std::vector m_current_buf; + std::vector m_current_buf; std::mutex m_queue_mutex; /*! Buffer containing all available samples from VLC */ - std::deque m_queue; + std::deque m_queue; std::string m_uri; unsigned m_verbosity; -- cgit v1.2.3