mirror of
https://github.com/litruv/PNGTuber-Plus.git
synced 2026-07-24 02:26:02 +10:00
- Add experimental microphone loudness detection feature - Remove microphone restart interval for better stability - Improve microphone initialization and error handling - Fix audio delay issues by setting channel_disable_time=0.0 - Update settings UI to include experimental mic loudness toggle - Add credits to k0ffinz/Ralsi for microphone improvements These changes improve audio responsiveness and fix various microphone-related issues including WASAPI errors and growing audio delay problems.
18 lines
289 B
GDScript
18 lines
289 B
GDScript
extends Control
|
|
|
|
var micName = ""
|
|
|
|
func _ready():
|
|
$Label.text = micName
|
|
|
|
|
|
func _on_button_pressed():
|
|
if !get_parent().get_parent().get_parent().visible:
|
|
return
|
|
|
|
AudioServer.input_device = micName
|
|
Global.createMicrophone()
|
|
get_parent().get_parent().get_parent().visible = false
|
|
|
|
|