patch for alsa driver, by cladisch - closes ticked #8
This commit is contained in:
@@ -173,8 +173,8 @@ AlsaDspSource :: open ( void ) throw ( Exception )
|
|||||||
throw Exception( __FILE__, __LINE__, "can't set channels", u);
|
throw Exception( __FILE__, __LINE__, "can't set channels", u);
|
||||||
}
|
}
|
||||||
|
|
||||||
u = getBufferTime() / 4;
|
u = 4;
|
||||||
if (snd_pcm_hw_params_set_period_time_near(captureHandle, hwParams, &u, 0)
|
if (snd_pcm_hw_params_set_periods_near(captureHandle, hwParams, &u, 0)
|
||||||
< 0) {
|
< 0) {
|
||||||
snd_pcm_hw_params_free(hwParams);
|
snd_pcm_hw_params_free(hwParams);
|
||||||
close();
|
close();
|
||||||
|
|||||||
Reference in New Issue
Block a user