Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALSA: fix buffer size / period size configuration, JACK: update to 0.13.0 and fix compilation errors #914

Closed

Conversation

abique
Copy link
Contributor

@abique abique commented Sep 21, 2024

With ALSA, the buffer size is nperiod * period_size. We want 2 periods.
The default was far too large, 1024 samples is a much more reasonable default (still too large for real-time audio).

Fixes #913

@abique abique force-pushed the fix-alsa-period-size-configuration branch 2 times, most recently from 2222ff1 to d75baff Compare September 21, 2024 13:57
@abique
Copy link
Contributor Author

abique commented Sep 21, 2024

I can confirm that this fixes intialization of Hercules DJControl Inpulse 500 on Linux with ALSA.

@abique abique changed the title ALSA: fix buffer size / period size configuration ALSA: fix buffer size / period size configuration, JACK: update to 0.13.0 and fix compilation errors Sep 21, 2024
@abique abique marked this pull request as draft September 21, 2024 17:36
@abique abique force-pushed the fix-alsa-period-size-configuration branch from 89683e7 to b996a61 Compare September 21, 2024 19:00
@abique abique marked this pull request as ready for review September 21, 2024 20:43
@abique abique force-pushed the fix-alsa-period-size-configuration branch 8 times, most recently from 5a4b73f to 9e68ef6 Compare September 22, 2024 10:06
@abique abique marked this pull request as draft September 22, 2024 10:12
@abique abique force-pushed the fix-alsa-period-size-configuration branch 6 times, most recently from dcf034e to 3a5453c Compare September 22, 2024 11:38
@abique abique marked this pull request as ready for review September 22, 2024 11:53
@abique abique force-pushed the fix-alsa-period-size-configuration branch from 3a5453c to 3ee72bb Compare September 22, 2024 11:55
With ALSA, the buffer size is `nperiod * period_size`.
We want 2 periods.
The default was far too large, 1024 samples is a much more reasonable default (still too large for real-time audio).

Fixes RustAudio#913
@abique
Copy link
Contributor Author

abique commented Sep 24, 2024

@abique abique closed this Sep 24, 2024
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.

Invalid period size specification for ALSA?
1 participant