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

How to specify audio buffer size #145

Open
0x01011970 opened this issue Jan 1, 2024 · 1 comment
Open

How to specify audio buffer size #145

0x01011970 opened this issue Jan 1, 2024 · 1 comment

Comments

@0x01011970
Copy link

0x01011970 commented Jan 1, 2024

Hello,

Is there anyway to specify the sizes of the different audio buffer used by OBS & ASIO ?

I am not referring to the sample size of the audio card which is already at maximum 1024 (focusrite).

I am having a few audio glitches in content recorded using OBS.

I also have these log messages : "07:24:28.105: adding 42 milliseconds of audio buffering, total audio buffering is now 64 milliseconds (source: ASIO Input Capture)", not happening at the same time as the glitches.

I would like to specify the size of the audio buffering to try and see if the audio glitches disappear.

Is there any way for me to specify the size of the buffer mentioned in the log?

Also, would anyone know what kind of events can trigger these auto adjustments?

Thanks in advance

@Andersama
Copy link
Owner

It's been too long since I've touched obs source code. However, the buffer that you're referring to is obs's internal buffer to keep audio roughly in sync with video, which of course naturally, you don't get control over. And if I remember correctly, If there's processing hiccups that buffer extends and essentially represents an ever increasing time delay that your computer has stored for when it pushes out packets or attempts to write to disk etc... If your processor's overly busy with other things that can be an issue.

obs's audio engine processes 1024 (perhaps that's changed, I doubt it) samples at a time per filter / loop / callback, however you'd like to put it. I'd recommend actually keeping your asio's device buffer <1024. The main benefit of asio actually is the low latency / the tightness of your recorded audio to the stream, hopefully your device should be stable at a lower value.

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

No branches or pull requests

2 participants