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

Add support for muting microphone #248

Merged
merged 1 commit into from
Oct 8, 2023
Merged

Conversation

uezo
Copy link
Owner

@uezo uezo commented Oct 8, 2023

Stop capturing data from microphone when muted.
UnityEngine.Microphone ends internally.

var microphone = GetComponent<ChatdollMicrophone>();

// Mute
microphone.SetMute(true);

// Unmute
microphone.SetMute(false);

// Toggle
microphone.ToggleMute();

Also remove ChatdollMicrophone.IsUpdateOnThisFrame to detect silence to control recording session even no frame data comes from microphone.

Stop capturing data from microphone when muted.
UnityEngine.Microphone ends internally.

Also remove ChatdollMicrophone.IsUpdateOnThisFrame to detect silence to control recording session even no frame data comes from microphone.
@uezo uezo merged commit 40566fc into master Oct 8, 2023
@uezo uezo deleted the feature-muting-microphone branch October 8, 2023 12:36
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.

None yet

1 participant