-
Notifications
You must be signed in to change notification settings - Fork 439
Open
Description
Line 1066 in 6ecfec4
hw_params.set_period_size_near((v / 4) as alsa::pcm::Frames, alsa::ValueOr::Nearest)?; |
Hi,
The code above seems wrong to me.
As I understand it, a cpal buffer size correspond to an alsa period size.
So the alsa buffer size should be: nperiods * cpal_buffer_size
.
While it is currently cpal_buffer_size / 4
and I suppose that nperiods == 4
.
I think that better defaults for cpal would be a nperiods == 2
.
Cheers,
Alex
zezic
Metadata
Metadata
Assignees
Labels
No labels