From ab0c695db6f18c1798c6890fef269dd971e0672a Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 5 Feb 2018 15:58:50 +0100 Subject: Downmix to mono when -c1 is used with a VLC stereo source --- src/VLCInput.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/VLCInput.h') diff --git a/src/VLCInput.h b/src/VLCInput.h index f0212ab..c727fdf 100644 --- a/src/VLCInput.h +++ b/src/VLCInput.h @@ -126,9 +126,11 @@ class VLCInput : public InputInterface uint8_t** pp_pcm_buffer, size_t size); - /*! Notification from VLC that the buffer is now filled + /*! Notification from VLC that the buffer is now filled. + * VLC also tells us how many channels and how many + * samples */ - void postRender_cb(); + void postRender_cb(unsigned int channels, size_t size); int getRate() { return m_rate; } -- cgit v1.2.3