From d1207ea7f5f70946bfb4497a6f4b656792aabef0 Mon Sep 17 00:00:00 2001 From: "rafael@riseup.net" Date: Tue, 1 Dec 2009 12:57:31 +0000 Subject: [PATCH] patch for alsa driver, by cladisch - closes ticked #8 --- darkice/trunk/src/AlsaDspSource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/darkice/trunk/src/AlsaDspSource.cpp b/darkice/trunk/src/AlsaDspSource.cpp index 0e443d1..17894c5 100644 --- a/darkice/trunk/src/AlsaDspSource.cpp +++ b/darkice/trunk/src/AlsaDspSource.cpp @@ -173,8 +173,8 @@ AlsaDspSource :: open ( void ) throw ( Exception ) throw Exception( __FILE__, __LINE__, "can't set channels", u); } - u = getBufferTime() / 4; - if (snd_pcm_hw_params_set_period_time_near(captureHandle, hwParams, &u, 0) + u = 4; + if (snd_pcm_hw_params_set_periods_near(captureHandle, hwParams, &u, 0) < 0) { snd_pcm_hw_params_free(hwParams); close();