move function call in other function
This commit is contained in:
parent
98603ff069
commit
914e41fac3
1 changed files with 1040 additions and 1039 deletions
|
@ -61,9 +61,14 @@ QString CSound::LoadAndInitializeDriver ( int iDriverIdx )
|
||||||
// check device capabilities if it fullfills our requirements
|
// check device capabilities if it fullfills our requirements
|
||||||
const QString strStat = CheckDeviceCapabilities();
|
const QString strStat = CheckDeviceCapabilities();
|
||||||
|
|
||||||
// store ID of selected driver if initialization was successful
|
// check if device is capable
|
||||||
if ( strStat.isEmpty() )
|
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;
|
lCurDev = iDriverIdx;
|
||||||
}
|
}
|
||||||
else
|
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
|
// everything is ok, return empty string for "no error" case
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue