AudioCaptureTest
Module: Inworld.Assets. Namespace: Inworld.Sample. Inherited from: AudioCapture
This class serves as a global audio capture controller designed for testing audio device input.
Inspector Variables
Variable | Description |
---|---|
DropDown | The UI element used to display a list of available audio input devices. |
Text | The text displayed in the drop-down field to indicate the selected audio input device. |
Volume | The volume control bar. |
MicButton | The button for toggling microphone mute/unmute. |
CalibButton | The button for recalibrate |
MicOn | The sprite representing the microphone in an "on" state. |
MicOff | The sprite representing the microphone in an "off" state. |
API
Function | Description | Parameters |
---|---|---|
UpdateAudioInput | Change the current audio input device based on the selection from the drop-down field. | nIndex: The index of the audio input device to set as the current input. |
SwitchMicrophone | Toggle the mute/unmute state of the microphone. |