[vlc-commits] auhal: increase ringbuffer size by one second

David Fuhrmann git at videolan.org
Sat Apr 26 16:41:38 CEST 2014


vlc/vlc-2.1 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Fri Apr 25 18:18:23 2014 +0200| [41cf65f9535efa22fd434a88878f7d9b9b38ef2f] | committer: Felix Paul Kühne

auhal: increase ringbuffer size by one second

This will result in approx. 50% utilization
for tta files.

close #11193

(cherry picked from commit de7b556d7e39abeafeb0b042e05bcf5fa1bfaf04)
Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=41cf65f9535efa22fd434a88878f7d9b9b38ef2f
---

 modules/audio_output/auhal.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c
index f42f8b2..a72340c 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -57,7 +57,7 @@
 
 #define AOUT_VAR_SPDIF_FLAG 0xf00000
 
-#define AUDIO_BUFFER_SIZE_IN_SECONDS (AOUT_MAX_ADVANCE_TIME / CLOCK_FREQ)
+#define AUDIO_BUFFER_SIZE_IN_SECONDS ((AOUT_MAX_ADVANCE_TIME + CLOCK_FREQ) / CLOCK_FREQ)
 
 
 #define AOUT_VOLUME_DEFAULT             256



More information about the vlc-commits mailing list