1
0
forked from pool/libmirage

Increase buffer size to 2s

OBS-URL: https://build.opensuse.org/package/show/filesystems/libmirage?expand=0&rev=16
This commit is contained in:
Jan Engelhardt 2013-03-17 23:16:59 +00:00 committed by Git OBS Bridge
parent 160ba4939b
commit 8e71caf51b

View File

@ -6,6 +6,10 @@ Subject: [PATCH] libMirage: SNDFILE filter: instead of a single frame, cache
audio sector. This way, caching is much more efficient, and
consequently reduces CPU load. Fix for bug #60.
Edit by Jan Engelhardt <jengelh@inai.de>
Increase buffer size even more (see bug #60);
to 2 seconds, to resolve more dropouts.
---
.../filter-sndfile/filter-sndfile-file-filter.c | 43 +++++++++++---------
1 file changed, 23 insertions(+), 20 deletions(-)
@ -19,7 +23,7 @@ index a92f7ae..78c465f 100644
#define __debug__ "SNDFILE-FileFilter"
+/* Number of frames to cache */
+#define NUM_FRAMES 588
+#define NUM_FRAMES 588*75*2
+
/**********************************************************************\