move function call in other function

This commit is contained in:
Volker Fischer 2011-12-06 19:30:52 +00:00
parent 98603ff069
commit 914e41fac3

View file

@ -61,9 +61,14 @@ QString CSound::LoadAndInitializeDriver ( int iDriverIdx )
// check device capabilities if it fullfills our requirements
const QString strStat = CheckDeviceCapabilities();
// store ID of selected driver if initialization was successful
// check if device is capable
if ( strStat.isEmpty() )
{
// the device has changed, per definition we reset the channel
// mapping to the defaults (first two available channels)
ResetChannelMapping();
// store ID of selected driver if initialization was successful
lCurDev = iDriverIdx;
}
else
@ -168,10 +173,6 @@ QString CSound::CheckDeviceCapabilities()
}
}
// the device has changed, per definition we reset the channel
// mapping to the defaults (first two available channels)
ResetChannelMapping();
// everything is ok, return empty string for "no error" case
return "";
}