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

Adding minimum required audio buffer size support. #30

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zalez
Copy link
Contributor

@zalez zalez commented Oct 25, 2021

Hi,

this pull request is for adding support for a minimum audio buffer size.

Some audio devices (e.g. on Macs) may report very low buffer sizes (e.g. 4 bytes). This may introduce instabilities when interacting with other audio devices or the overall JammerNetz audio buffer. This pull request specifies a minimum required audio buffer size in Client/Source/ApplicationState.h of 128 Bytes, then enforces this minimum in Client/Source/AudioService.cpp.

The change has been successfully tested on a MacBook Pro M1 running macOS Big Sur Version 11.6 and instead of previously reporting 4 Bytes buffer size when opening the audio device, it now report 128 Bytes.

Hope this helps,
Constantin

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.

None yet

1 participant