/
FetchAudioInputs (Unreal Engine)

FetchAudioInputs (Unreal Engine)

- Declaration

static void FetchAudioInputs(CavrnusAvailableInputDevices OnReceiveDevices);

Delegates Options:

DECLARE_DYNAMIC_DELEGATE_OneParam(FCavrnusAvailableInputDevices, const TArray<FCavrnusInputDevice>&, InputDevices);

typedef TFunction<void(const TArray<FCavrnusInputDevice>&)> CavrnusAvailableInputDevices;

- Description

Provides a list of available microphones. This function is basically only useful if you wished to build your own version of the default voice/video UI.

- Blueprint Sample

FetchAudioInputs.png
Audio Video Selection Widget

- Code Sample

#include "CavrnusFunctionLibrary.h" #include "Types/CavrnusCallbackTypes.h" #include "Types/CavrnusInputDevice.h" void UClassName::Initialize() { // Member is FCavrnusAvailableInputDevices InputDevicesDelegate; InputDevicesDelegate.BindUFunction(this, GET_FUNCTION_NAME_CHECKED(UClassName, OnAudioInputDevicesReceived)); } void UClassName::OnAudioInputDevicesReceived(const TArray<FCavrnusInputDevice>& InputDevices) { // Member is TMap<FString, FCavrnusInputDevice> AudioInputDeviceList; AudioInputDeviceList.Empty(InputDevices.Num()) for (auto InputDevice : InputDevices) { AudioInputDeviceList.Add(InputDevice.DeviceId, InputDevice); } }

Related content

UpdateAudioInput (Unreal Engine)
UpdateAudioInput (Unreal Engine)
More like this
FetchVideoInputs (Unreal Engine)
FetchVideoInputs (Unreal Engine)
More like this
GetCurrentSpaceUsers (Unreal Engine)
GetCurrentSpaceUsers (Unreal Engine)
Read with this
FetchAudioOutputs (Unreal Engine)
FetchAudioOutputs (Unreal Engine)
More like this
BindUserVideoFrames (Unity)
BindUserVideoFrames (Unity)
Read with this
UpdateAudioOutput (Unreal Engine)
UpdateAudioOutput (Unreal Engine)
More like this