Skip to content

Conversation

@alexmoon
Copy link
Contributor

  • Always set period before setting buffer size, even if BufferSize::Fixed.
  • Set start_threshold based on alsa::Direction to avoid underruns on playback streams.

Also refactor the return values of the set params functions to reflect their actual use and resolve some clippy warnings (including a logic error in stream_timestamp()).

This pull request incorporates the changes from @sniperrifle2004 in #433 and #431. Based on that it should fix #369, fix #391 and fix #432.

* Always set period before setting buffer size, even if
  `BufferSize::Fixed`.
* Set `start_threshold` based on `alsa::Direction` to avoid underruns on
  playback streams.

Also refactor the return values of the set params functions to reflect their
actual use and resolve some clippy warnings (including a logic error in
`stream_timestamp()`).
@alexmoon
Copy link
Contributor Author

alexmoon commented Jan 3, 2021

@mitchmindtree I think this PR is ready to merge. Let me know if you see anything blocking it.

@strohel
Copy link

strohel commented Jun 16, 2021

Hi, what is the status of this? It seems that merging this would unblock progress outlined in #495 (comment), which would help our adoption of cpal.

@est31
Copy link
Member

est31 commented Jun 16, 2021

This PR has a conflict. I am ready to merge it but they need to be resolved.

@strohel
Copy link

strohel commented Jun 17, 2021

This PR has a conflict. I am ready to merge it but they need to be resolved.

The conflict was easy to resolve, but I cannot push to @alexmoon's branch. Let's give Alex a bit more time to react.

In any case the rebased branch is at master...strohel:alsa-setup

@est31
Copy link
Member

est31 commented Jun 17, 2021

@strohel I've turned your branch into a PR over at #582 . Closing in favour of that PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Alsa Host] Start threshold of 0 Problem when setting buffer time (alsa backend) Problem with playback under arch linux.

3 participants