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

WASAPI multi-channel microphone input #55

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

Conversation

SleeeepyZhou
Copy link

@SleeeepyZhou SleeeepyZhou commented Oct 2, 2024

Support multi-channel microphone input by downmixing to stereo

  • Enhanced the WASAPI audio driver to support microphones with any number of channels.
  • This modification ensures compatibility with a broader range of multi-channel microphones, allowing for more versatile input handling in engine.
  • Regarding “WASAPI: unsupported channel count in microphone!” error.

Related issues
This is a pull that I created in the Godot.

I tried compiling and testing the four channel microphone on my laptop, and it turned out to be error free. This enables the successful use of multi-channel microphones in Godot.

I made the assumption that the microphone might have a potential configuration with odd channels (e.g., Left, Right, Center), although such configurations are uncommon (in some professional audio equipment). The goal was to ensure that the microphone is at least usable within Godot, regardless of the channel count. The WASAPI documentation itself doesn't explicitly specify how multi-channel microphones should be handled, so I aimed for a more general solution to accommodate various configurations.

Thank you for reviewing !

Support multi-channel microphone input by downmixing to stereo
- Enhanced the WASAPI audio driver to support microphones with any number of channels.
- This modification ensures compatibility with a broader range of multi-channel microphones, allowing for more versatile input handling in Godot.
Regarding “WASAPI: unsupported channel count in microphone!” error.
@SleeeepyZhou SleeeepyZhou changed the title Master WASAPI multi-channel microphone input Oct 2, 2024
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