这是indexloc提供的服务,不要输入任何密码
Skip to content

Fix for USB Microphones as external device #504

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

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

newemka
Copy link
Contributor

@newemka newemka commented Jan 27, 2025

Removing if (length < 3000) check fixes the issue because it ensures small buffers are not prematurely discarded.

Microphones, especially USB ones, often use smaller buffer sizes to provide low-latency audio. The 3000 threshold was prematurely skipping the processing of these small buffers, essentially discarding the input entirely.

Removing if (length < 3000) check fixes the issue because it ensures small buffers are not prematurely discarded. The original check was likely added with a misguided assumption that small buffers are insignificant, but this breaks microphone functionality where small buffers are common.
@pixtur pixtur merged commit a50deb7 into tixl3d:dev Jan 27, 2025
@newemka newemka deleted the feat/fixMicrophonesAudioInput branch January 27, 2025 14:00
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