diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-02-05 15:58:50 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-02-05 15:58:50 +0100 |
commit | ab0c695db6f18c1798c6890fef269dd971e0672a (patch) | |
tree | a315294d5c306cfafb0f555995dc632c7c3704cc /src/VLCInput.h | |
parent | 9cbc128a740105ffb0289e0bf2ea2cd788d132ae (diff) | |
download | ODR-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.h | 6 |
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; } |