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

Decouple Alsa device buffer and period sizes from CamillaDSP chunksize #376

Open
HEnquist opened this issue Nov 10, 2024 · 0 comments
Open
Labels
enhancement New feature or request linux Only affects Linux

Comments

@HEnquist
Copy link
Owner

The Wasapi and CodeAudio capture and playback devices use a an outer and an inner thread, with a buffer in between. This allows the inner thread to read or write as many frames as the device requires, while the outer threads exchange chunks with chunksize frames with the processing pipeline.
The Alsa backend uses a single thread per device, which means the device buffer and period sizes cannot be chosen freely. This is mostly ok since most devices support wide ranges for both parameters. But some devices do not, for example requiring the buffer size to be 2 * period size.
Rewrite the Alsa backend to add an inner like in the Wasapi and CodeAudio backends to get around this limitation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request linux Only affects Linux
Projects
None yet
Development

No branches or pull requests

1 participant