summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2012-05-16 18:10:18 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2012-05-17 10:20:23 +0800
commit3c19ce504577fb29b52cbf56025db5e35bf9427a (patch)
tree78940ddb3c0d46cbebab842b1928b51f90338c98 /src
parent8c52ea68921f8c9047e1bb693cc43542069cce85 (diff)
Set stop threshold to buffer size for alsa
Diffstat (limited to 'src')
-rw-r--r--src/device_alsa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device_alsa.cpp b/src/device_alsa.cpp
index bfb2c22..68f3f40 100644
--- a/src/device_alsa.cpp
+++ b/src/device_alsa.cpp
@@ -135,7 +135,7 @@ namespace audiere {
}
status = snd_pcm_sw_params_set_stop_threshold(pcm_handle, swparams,
- boundary);
+ buffer_size);
if (status < 0) {
ADR_LOG("Coudn't set stop threshold.");
snd_pcm_close(pcm_handle);