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

Added audio buffer option to audio config #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oviano
Copy link

@oviano oviano commented Jun 4, 2023

Description

This adds an option to set the audio buffer, rather than be forced to use 10ms.

Motivation and Context

I am trialing the library in a personal hobby project and I found that with a 10ms buffer, I was getting audio glitches so I needed to raise it. 80ms is apparently recommended by MSDN, and 50ms is the default used inside FFmpeg.

How Has This Been Tested?

Testing with my project shows the audio is more stable when I increase the buffer.

Types of changes

Tweak (non-breaking change to improve existing functionality)

Checklist:

My code has been run through clang-format.
I have read the contributing document.
My code is not on the master branch.
The code has been tested.
All commit messages are properly formatted and commits squashed where appropriate.
I have included updates to all appropriate documentation.

@Fenrirthviti
Copy link
Member

Please properly fill out the PR template instead of deleting it.

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.

2 participants