about summary refs log tree commit diff
path: root/machines/labnet/buffer.patch
diff options
context:
space:
mode:
Diffstat (limited to 'machines/labnet/buffer.patch')
-rw-r--r--machines/labnet/buffer.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/machines/labnet/buffer.patch b/machines/labnet/buffer.patch
new file mode 100644
index 00000000..379b3174
--- /dev/null
+++ b/machines/labnet/buffer.patch
@@ -0,0 +1,13 @@
+diff --git a/src/modules/alsa/alsa-sink.c b/src/modules/alsa/alsa-sink.c
+index 2fdebe0..7042ccc 100644
+--- a/src/modules/alsa/alsa-sink.c
++++ b/src/modules/alsa/alsa-sink.c
+@@ -63,7 +63,7 @@
+ #define DEFAULT_DEVICE "default"
+ 
+ #define DEFAULT_TSCHED_BUFFER_USEC (2*PA_USEC_PER_SEC)             /* 2s    -- Overall buffer size */
+-#define DEFAULT_TSCHED_WATERMARK_USEC (20*PA_USEC_PER_MSEC)        /* 20ms  -- Fill up when only this much is left in the buffer */
++#define DEFAULT_TSCHED_WATERMARK_USEC (500*PA_USEC_PER_MSEC)        /* 500ms  -- Fill up when only this much is left in the buffer */
+ 
+ #define TSCHED_WATERMARK_INC_STEP_USEC (10*PA_USEC_PER_MSEC)       /* 10ms  -- On underrun, increase watermark by this */
+ #define TSCHED_WATERMARK_DEC_STEP_USEC (5*PA_USEC_PER_MSEC)        /* 5ms   -- When everything's great, decrease watermark by this */