more detailed error text in case of wrong sound card frame size

This commit is contained in:
Volker Fischer 2009-08-16 12:49:09 +00:00
parent 6ad4e53a78
commit 87bf110ef3

View File

@ -257,27 +257,33 @@ void CClient::Start()
// init object // init object
Init(); Init();
// check sound card buffer sizes, if not supported, fire error message
// TEST check sound card buffer sizes, if not supported, fire error message if ( ( iMonoBlockSizeSam != ( SYSTEM_FRAME_SIZE_SAMPLES * FRAME_SIZE_FACTOR_PREFERRED ) ) &&
if ( ( iMonoBlockSizeSam != ( SYSTEM_FRAME_SIZE_SAMPLES * FRAME_SIZE_FACTOR_PREFERRED ) ) && ( iMonoBlockSizeSam != ( SYSTEM_FRAME_SIZE_SAMPLES * FRAME_SIZE_FACTOR_DEFAULT ) ) &&
( iMonoBlockSizeSam != ( SYSTEM_FRAME_SIZE_SAMPLES * FRAME_SIZE_FACTOR_DEFAULT ) ) && ( iMonoBlockSizeSam != ( SYSTEM_FRAME_SIZE_SAMPLES * FRAME_SIZE_FACTOR_SAFE ) ) )
( iMonoBlockSizeSam != ( SYSTEM_FRAME_SIZE_SAMPLES * FRAME_SIZE_FACTOR_SAFE ) ) ) {
{ const QString strError = "The current sound card frame size of <b>" +
const QString strError = "The sound card frame size is not supported " QString().setNum ( iMonoBlockSizeSam ) + " samples</b> is not supported "
"by this software. Please open your " "by this software. Please open your "
#ifdef _WIN32 #ifdef _WIN32
"ASIO " "ASIO "
#else #else
"JACK " "JACK "
#endif #endif
"configuration panel and use one of the following frame sizes: " + "configuration panel and use one of the following frame sizes: <b>" +
QString().setNum ( SYSTEM_FRAME_SIZE_SAMPLES * FRAME_SIZE_FACTOR_PREFERRED ) + ", " + QString().setNum ( SYSTEM_FRAME_SIZE_SAMPLES * FRAME_SIZE_FACTOR_PREFERRED ) + ", " +
QString().setNum ( SYSTEM_FRAME_SIZE_SAMPLES * FRAME_SIZE_FACTOR_DEFAULT ) + ", or " + QString().setNum ( SYSTEM_FRAME_SIZE_SAMPLES * FRAME_SIZE_FACTOR_DEFAULT ) + ", or " +
QString().setNum ( SYSTEM_FRAME_SIZE_SAMPLES * FRAME_SIZE_FACTOR_SAFE ) + "."; QString().setNum ( SYSTEM_FRAME_SIZE_SAMPLES * FRAME_SIZE_FACTOR_SAFE ) +
" samples</b>."
throw CGenErr ( strError ); #ifdef _WIN32
} "<br><br>To open the ASIO configuration panel, you can open the Settings "
"Dialog in the llcon software (using the menu) and click on the \"ASIO "
"Setup\" button."
#endif
;
throw CGenErr ( strError );
}
// enable channel // enable channel
Channel.SetEnable ( true ); Channel.SetEnable ( true );