summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2010-10-26 16:36:34 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2010-10-26 16:36:34 +0800
commit77530c5c158d1fbb45bc4f51198eb6b57a222e79 (patch)
tree6fc9d78fe372c826429fa3cbe8c741b155bf2359
parent5e718520be87fa220e67802d39d807457c50bbd8 (diff)
alsa: don't set silence size to infinite
-rw-r--r--src/device_alsa.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/device_alsa.cpp b/src/device_alsa.cpp
index 00487ed..b727825 100644
--- a/src/device_alsa.cpp
+++ b/src/device_alsa.cpp
@@ -141,15 +141,6 @@ namespace audiere {
return 0;
}
-#if SND_LIB_VERSION >= 0x000901
- status = snd_pcm_sw_params_set_silence_size(pcm_handle, swparams,
- boundary);
- if (status < 0) {
- ADR_LOG("Coudn't set silence size.");
- snd_pcm_close(pcm_handle);
- return 0;
- }
-#endif
status = snd_pcm_sw_params(pcm_handle, swparams);
if (status < 0) {
ADR_LOG("Couldn't set audio device parameters.");