Added more text for the Jack server different sample rate error

This commit is contained in:
Volker Fischer 2013-03-27 21:32:47 +00:00
parent 119daf08df
commit 1de080f235
1 changed files with 5 additions and 1 deletions

View File

@ -32,6 +32,7 @@ void CSound::OpenJack()
// try to become a client of the JACK server
pJackClient = jack_client_open ( APP_NAME, JackNullOption, &JackStatus );
if ( pJackClient == NULL )
{
throw CGenErr ( tr ( "Jack server not running" ) );
@ -51,7 +52,10 @@ void CSound::OpenJack()
if ( jack_get_sample_rate ( pJackClient ) != SYSTEM_SAMPLE_RATE_HZ )
{
throw CGenErr ( tr ( "Jack server sample rate is different from "
"required one" ) );
"the required one. The required sample rate is: " ) +
QString().setNum ( SYSTEM_SAMPLE_RATE_HZ ) + tr ( " Hz. You can "
"use a tool like QJackCtrl to adjust the Jack server sample "
"rate." ) );
}
// create four ports (two for input, two for output -> stereo)