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

David Fuhrmann git at videolan.org
Fri Apr 25 18:23:05 CEST 2014


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Fri Apr 25 18:18:23 2014 +0200| [de7b556d7e39abeafeb0b042e05bcf5fa1bfaf04] | committer: David Fuhrmann

auhal: increase ringbuffer size by one second

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

close #11193

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

 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 e512bc3..0b61db0 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