cwIoTest.cpp : Fixed error handling in test().

This commit is contained in:
kevin 2021-05-10 08:32:20 -04:00
parent ee11b004da
commit 394b668265

View File

@ -283,7 +283,10 @@ cw::rc_t cw::io::test( const object_t* cfg )
//
unsigned devIdx = audioDeviceLabelToIndex(app.ioH, "main");
if( devIdx == kInvalidIdx )
{
cwLogError(kOpFailRC, "Unable to locate the requested audio device.");
goto errLabel;
}
else
{
//audioDeviceEnableMeters( app.ioH, devIdx, kInFl | kOutFl | kEnableFl );