cpal icon indicating copy to clipboard operation
cpal copied to clipboard

add timeout paramter to DeviceTrait stream builders

Open mbodmer opened this issue 2 years ago • 1 comments

This makes it possible for the library client to handle situations where the host takes too long to respond or even blocks forever, eg. a retry can be applied.

if the timeout passed is "None" the current behaviour is applied, eg. blocking forever. if the timeout passed is a Duration then it will be applied to the Device Streams. This is only implemented for ALSA, the other hosts will ignore the parameter for now.

Signed-off-by: Marc Bodmer [email protected]

mbodmer avatar Oct 03 '22 13:10 mbodmer

Also see: #695

mbodmer avatar Oct 03 '22 13:10 mbodmer

Could please someone run it again, I would like to see whether all is ok, so that I can put this aside for my part, thanks.

mbodmer avatar Oct 18 '22 14:10 mbodmer

I've re-ran CI, but the PR seems outdated. Can you rebase the PR?

est31 avatar Oct 18 '22 14:10 est31

Ok and thanks, I've now rebased it, hope the merging went well

mbodmer avatar Oct 18 '22 14:10 mbodmer