Getting and setting audio devices

Hello everyone, I’m making a game on UE4.27 and at the moment I want to change audio devices from the game settings, but I ran into a problem. It seemed to me that I can use AudioCapture.h to change the microphone, but when include it and wrote the code, it gave me the following errors in AudioCapture.h

Severity Code Description Project File Line Suppression State Details
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int FirstGame E:\UE_4.27\Engine\Plugins\Runtime\AudioCapture\Source\AudioCapture\Public\AudioCapture.h 30
Error C2143 syntax error: missing ‘;’ before ‘’ FirstGame E:\UE_4.27\Engine\Plugins\Runtime\AudioCapture\Source\AudioCapture\Public\AudioCapture.h 48
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int FirstGame E:\UE_4.27\Engine\Plugins\Runtime\AudioCapture\Source\AudioCapture\Public\AudioCapture.h 47
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int FirstGame E:\UE_4.27\Engine\Plugins\Runtime\AudioCapture\Source\AudioCapture\Public\AudioCapture.h 50
Error C2143 syntax error: missing ‘;’ before ‘’ FirstGame E:\UE_4.27\Engine\Plugins\Runtime\AudioCapture\Source\AudioCapture\Public\AudioCapture.h 80
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int FirstGame E:\UE_4.27\Engine\Plugins\Runtime\AudioCapture\Source\AudioCapture\Public\AudioCapture.h 79
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int FirstGame E:\UE_4.27\Engine\Plugins\Runtime\AudioCapture\Source\AudioCapture\Public\AudioCapture.h 82

what could be wrong and if I’m doing something wrong, can you point me in the right direction? I’ve already tried rebuilding the project, cleaning Intermediate, binaries


AudioCapture.h