cpal
cpal copied to clipboard
add timeout paramter to DeviceTrait stream builders
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]
Also see: #695
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.
I've re-ran CI, but the PR seems outdated. Can you rebase the PR?
Ok and thanks, I've now rebased it, hope the merging went well