summaryrefslogtreecommitdiffstats
path: root/src/VLCInput.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-01-10 17:35:23 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-01-10 17:35:23 +0100
commit90c973307607be9ed8f943a79a36a28a46c07502 (patch)
tree6f9d9cc7187e3c4f6fb11a95462c341998017049 /src/VLCInput.h
parente4821033a325b748c1c69848554b349c76ba6f59 (diff)
downloadODR-AudioEnc-90c973307607be9ed8f943a79a36a28a46c07502.tar.gz
ODR-AudioEnc-90c973307607be9ed8f943a79a36a28a46c07502.tar.bz2
ODR-AudioEnc-90c973307607be9ed8f943a79a36a28a46c07502.zip
Fix VLC queue fill and increase queue size
Diffstat (limited to 'src/VLCInput.h')
-rw-r--r--src/VLCInput.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/VLCInput.h b/src/VLCInput.h
index f880642..27d6237 100644
--- a/src/VLCInput.h
+++ b/src/VLCInput.h
@@ -38,9 +38,6 @@
// 16 bits per sample is fine for now
#define BYTES_PER_SAMPLE 2
-// How many samples we insert into the queue each call
-#define NUM_SAMPLES_PER_CALL 10 // 10 samples @ 32kHz = 3.125ms
-
/* Common functionality for the direct libvlc input and the
* threaded libvlc input
*/
@@ -93,6 +90,7 @@ class VLCInput
protected:
void cleanup(void);
+ // Fill exactly length bytes into buf. Blocking.
ssize_t m_read(uint8_t* buf, size_t length);
std::vector<uint8_t> m_current_buf;