aboutsummaryrefslogtreecommitdiffstats
path: root/src/VLCInput.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-02-05 15:58:50 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-02-05 15:58:50 +0100
commitab0c695db6f18c1798c6890fef269dd971e0672a (patch)
treea315294d5c306cfafb0f555995dc632c7c3704cc /src/VLCInput.h
parent9cbc128a740105ffb0289e0bf2ea2cd788d132ae (diff)
downloadODR-AudioEnc-ab0c695db6f18c1798c6890fef269dd971e0672a.tar.gz
ODR-AudioEnc-ab0c695db6f18c1798c6890fef269dd971e0672a.tar.bz2
ODR-AudioEnc-ab0c695db6f18c1798c6890fef269dd971e0672a.zip
Downmix to mono when -c1 is used with a VLC stereo source
Diffstat (limited to 'src/VLCInput.h')
-rw-r--r--src/VLCInput.h6
1 files changed, 4 insertions, 2 deletions
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; }