/
UpdateAudioInput (Unreal Engine)

UpdateAudioInput (Unreal Engine)

- Declaration

static void UpdateAudioInput(FCavrnusInputDevice Device);

- Description

Sets which microphone the user wishes to use. Note that the FCavrnusInputDevice provided to this function can only be acquired by calling FetchAudioInputs to search for available microphones.

- Blueprint Sample

Sample is taken from WBP_AudioVideoWidget.uasset in the Plugin. AudioInputDeviceResponse is a Blueprint array of FCavrnusInputDevice instances that was provided earlier via Fetch Audio Inputs.

 

UpdateAudioInput.png
WBP_AudioVideoWidget

- Code Sample

#include "CavrnusFunctionLibrary.h" #include "Types/CavrnusInputDevice.h" void UClassName::OnAudioInputDeviceSelected(const FString& DeviceId) { // Member is TMap<FString, FCavrnusInputDevice> AudioInputDeviceList; FCavrnusInputDevice* InputDevice = AudioInputDeviceList.Find(DeviceId); if (InputDevice) { UCavrnusFunctionLibrary::UpdateAudioInput(*InputDevice); } else { UE_LOG(LogTemp, Warning, TEXT("Selected Audio Input Device not found: %s"), *DeviceId); } }

Related content

FetchAudioInputs (Unreal Engine)
FetchAudioInputs (Unreal Engine)
More like this
FetchVideoInputs (Unreal Engine)
FetchVideoInputs (Unreal Engine)
More like this
AwaitLocalUser (Unreal Engine)
AwaitLocalUser (Unreal Engine)
Read with this
UpdateAudioOutput (Unreal Engine)
UpdateAudioOutput (Unreal Engine)
More like this
GetCurrentSpaceUsers (Unreal Engine)
GetCurrentSpaceUsers (Unreal Engine)
Read with this
UpdateVideoInput (Unreal Engine)
UpdateVideoInput (Unreal Engine)
More like this