@@ -9,21 +9,48 @@ USystemMicControlLiteBPLibrary::USystemMicControlLiteBPLibrary(const FObjectInit
99
1010}
1111
12+ void USystemMicControlLiteBPLibrary::PostInitProperties ()
13+ {
14+ Super::PostInitProperties ();
15+
16+ FSystemMicLiteManager::Get ()->Init ();
17+ }
18+
1219FString USystemMicControlLiteBPLibrary::GetMicDefaultDeviceName ()
1320{
1421 return FSystemMicLiteManager::Get ()->GetDefaultDeviceName ();
1522}
1623
24+ void USystemMicControlLiteBPLibrary::GetMicDeviceIdFromName (const FString& InDeviceName, FString& OutDeviceId)
25+ {
26+ OutDeviceId = FSystemMicLiteManager::Get ()->GetDeviceIdFromName (InDeviceName);
27+ }
28+
29+ void USystemMicControlLiteBPLibrary::GetMicDeviceNameFromId (const FString& InDeviceId, FString& OutDeviceName)
30+ {
31+ OutDeviceName = FSystemMicLiteManager::Get ()->GetDeviceNameFromId (InDeviceId);
32+ }
33+
1734void USystemMicControlLiteBPLibrary::SetMicVolume (float Value)
1835{
1936 FSystemMicLiteManager::Get ()->SetVolume (Value);
2037}
2138
39+ void USystemMicControlLiteBPLibrary::SetMicVolumeForDeviceId (const FString& DeviceId, float Volume)
40+ {
41+ FSystemMicLiteManager::Get ()->SetVolume (Volume, DeviceId);
42+ }
43+
2244float USystemMicControlLiteBPLibrary::GetMicVolume ()
2345{
2446 return FSystemMicLiteManager::Get ()->GetVolume ();
2547}
2648
49+ float USystemMicControlLiteBPLibrary::GetMicVolumeForDeviceId (const FString& DeviceId)
50+ {
51+ return FSystemMicLiteManager::Get ()->GetVolume (DeviceId);
52+ }
53+
2754TMap<FString, FString> USystemMicControlLiteBPLibrary::GetMicActiveDevices ()
2855{
2956 return FSystemMicLiteManager::Get ()->GetActiveDevices ();
0 commit comments