patch for alsa driver, by cladisch - closes ticked #8

This commit is contained in:
rafael@riseup.net 2009-12-01 12:57:31 +00:00
parent 1919826ee2
commit d1207ea7f5
1 changed files with 2 additions and 2 deletions

View File

@ -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();