quellus / GDTuber

A dynamic PNGTuber program made in Godot
MIT License
21 stars 12 forks source link

[Bug]: Microphone input not detected on MacOS #76

Open devgocri opened 1 month ago

devgocri commented 1 month ago

Describe the bug?

GDTuber does not detect microphone input on MacOS. The input sources list has the correct input devices, but selecting one and speaking does not result in anything being picked up by the program (changing the gain also results in no change).

The program does not appear request microphone access on initial launch (no popup appears), which might be the cause. Godot also spams an audio related error (??) during execution, which I have provided below, although I am not sure if this is part of the issue or is an issue with the Godot setup on my system (testing on other devices would be preferable).

E 0:00:05:0276   input_callback: AudioUnitRender failed, code: -10863
  <C++ Source>   drivers/coreaudio/audio_driver_coreaudio.cpp:238 @ input_callback()

To Reproduce

  1. Run GDTuber on Mac
  2. Select an input source.
  3. Make sound.

Expected behavior

The indicator next to the slider below the input device button should indicate that microphone input is being received. The image should also bounce and react to the microphone input.

Screenshots

image

While making sound:

image

Godot Version

4.2.2

What Platforms does this occur on?

macOS

Additional Context

Device info: Macbook Air M1 running MacOS Sonoma 14.5 Tested in both Godot Stable, Mono, and also after exporting the app.

spaghetticodefactory commented 1 month ago

This is most likely related to higher sampling rates in OSX.

Related Issue is still open: https://github.com/godotengine/godot/issues/64583

quellus commented 1 month ago

@Shilo