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

Buffer full error when recording with certain headsets #4

Open
gtondello opened this issue Jun 7, 2022 · 1 comment
Open

Buffer full error when recording with certain headsets #4

gtondello opened this issue Jun 7, 2022 · 1 comment

Comments

@gtondello
Copy link
Owner

For some headsets, the NAudio library generates a different amount of bytes over time for the output loopback and the mic. Since the current implementation relies on processing the same amount of bytes for each period of time, the result is that one of the buffers keeps storing unprocessed bytes over time and ends up overflowing.

Confirmed that this happens with the Skullcandy Hesh 3 Bluetooth headset and possibly others.

@gtondello
Copy link
Owner Author

To solve this problem, we would probably need to find another way to synchronize the input and the loopback audio streams, without relying only on the number of bytes recorded. However, I am not sure yet how to do this.

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

1 participant