Skip to content

Commit a980a7b

Browse files
committed
Added method cpp/bp GetMicDefaultDeviceId
1 parent 05d5a2f commit a980a7b

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Source/SystemMicControlLite/Private/SystemMicControlLiteBPLibrary.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ FString USystemMicControlLiteBPLibrary::GetMicDefaultDeviceName()
2121
return FSystemMicLiteManager::Get()->GetDefaultDeviceName();
2222
}
2323

24+
FString USystemMicControlLiteBPLibrary::GetMicDefaultDeviceId()
25+
{
26+
return FSystemMicLiteManager::Get()->GetDefaultDeviceId();
27+
}
28+
2429
void USystemMicControlLiteBPLibrary::GetMicDeviceIdFromName(const FString& InDeviceName, FString& OutDeviceId)
2530
{
2631
OutDeviceId = FSystemMicLiteManager::Get()->GetDeviceIdFromName(InDeviceName);

Source/SystemMicControlLite/Public/SystemMicControlLiteBPLibrary.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ class SYSTEMMICCONTROLLITE_API USystemMicControlLiteBPLibrary : public UBlueprin
1717
UFUNCTION(BlueprintPure, Category = "SystemMicControlLite", DisplayName = "Get System Mic Default Device Name")
1818
static FString GetMicDefaultDeviceName();
1919

20+
UFUNCTION(BlueprintPure, Category = "SystemMicControlLite", DisplayName = "Get System Mic Default Device Id")
21+
static FString GetMicDefaultDeviceId();
22+
2023
UFUNCTION(BlueprintCallable, Category = "SystemMicControlLite", DisplayName = "Get System Mic Device Id From Name")
2124
static void GetMicDeviceIdFromName(const FString& InDeviceName, FString& OutDeviceId);
2225

0 commit comments

Comments
 (0)