Skip to content

Commit 74a0baa

Browse files
committed
Fixed crosscompile
1 parent 4be2238 commit 74a0baa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Source/SystemMicControlLite/Private/SystemMicLiteManager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ float FSystemMicLiteManager::GetValueFromScalar(float Value)
244244
return FMath::RoundToFloat(FMath::Abs(Value) > 0.0f ? Value * 100.0f : 0.0f);
245245
}
246246

247+
#if PLATFORM_WINDOWS
247248
TComPtr<IMMDevice> FSystemMicLiteManager::GetDevice(const FString& DeviceId)
248249
{
249250
TComPtr<IMMDevice> Device;
@@ -305,3 +306,4 @@ TComPtr<IAudioEndpointVolume> FSystemMicLiteManager::GetAudioEndpointVolume(cons
305306

306307
return AudioEndpointVolume;
307308
}
309+
#endif // PLATFORM_WINDOWS

0 commit comments

Comments
 (0)