use APP_NAME define instead of writing llcon directly in the code
This commit is contained in:
parent
4a70b4beba
commit
d4f00da713
5 changed files with 41 additions and 33 deletions
|
@ -31,7 +31,7 @@ void CSound::OpenJack()
|
||||||
jack_status_t JackStatus;
|
jack_status_t JackStatus;
|
||||||
|
|
||||||
// try to become a client of the JACK server
|
// try to become a client of the JACK server
|
||||||
pJackClient = jack_client_open ( "llcon", JackNullOption, &JackStatus );
|
pJackClient = jack_client_open ( APP_NAME, JackNullOption, &JackStatus );
|
||||||
if ( pJackClient == NULL )
|
if ( pJackClient == NULL )
|
||||||
{
|
{
|
||||||
throw CGenErr ( tr ( "Jack server not running" ) );
|
throw CGenErr ( tr ( "Jack server not running" ) );
|
||||||
|
|
|
@ -81,10 +81,10 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
||||||
|
|
||||||
// sound card device
|
// sound card device
|
||||||
cbxSoundcard->setWhatsThis ( tr ( "<b>Sound Card Device:</b> The ASIO "
|
cbxSoundcard->setWhatsThis ( tr ( "<b>Sound Card Device:</b> The ASIO "
|
||||||
"driver (sound card) can be selected using llcon under the Windows "
|
"driver (sound card) can be selected using " ) + APP_NAME +
|
||||||
"operating system. Under MacOS/Linux, no sound card selection is "
|
tr ( " under the Windows operating system. Under MacOS/Linux, no sound "
|
||||||
"possible. If the selected ASIO driver is not valid an error message "
|
"card selection is possible. If the selected ASIO driver is not valid "
|
||||||
"is shown and the previous valid driver is selected.<br>"
|
"an error message is shown and the previous valid driver is selected.<br>"
|
||||||
"If the driver is selected during an active connection, the connection "
|
"If the driver is selected during an active connection, the connection "
|
||||||
"is stopped, the driver is changed and the connection is started again "
|
"is stopped, the driver is changed and the connection is started again "
|
||||||
"automatically." ) );
|
"automatically." ) );
|
||||||
|
@ -123,8 +123,9 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
||||||
|
|
||||||
// sound card buffer delay
|
// sound card buffer delay
|
||||||
QString strSndCrdBufDelay = tr ( "<b>Sound Card Buffer Delay:</b> The "
|
QString strSndCrdBufDelay = tr ( "<b>Sound Card Buffer Delay:</b> The "
|
||||||
"buffer delay setting is a fundamental setting of the llcon software. "
|
"buffer delay setting is a fundamental setting of the " ) +
|
||||||
"This setting has influence on many connection properties.<br>"
|
APP_NAME + tr ( " software. This setting has influence on many "
|
||||||
|
"connection properties.<br>"
|
||||||
"Three buffer sizes are supported:"
|
"Three buffer sizes are supported:"
|
||||||
"<ul>"
|
"<ul>"
|
||||||
"<li>128 samples: This is the preferred setting since it gives lowest "
|
"<li>128 samples: This is the preferred setting since it gives lowest "
|
||||||
|
@ -135,14 +136,16 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
||||||
"computer or a slow internet connection is available.</li>"
|
"computer or a slow internet connection is available.</li>"
|
||||||
"</ul>"
|
"</ul>"
|
||||||
"Some sound card driver do not allow the buffer delay to be changed "
|
"Some sound card driver do not allow the buffer delay to be changed "
|
||||||
"from within the llcon software. In this case the buffer delay setting "
|
"from within the " ) + APP_NAME +
|
||||||
|
tr ( " software. In this case the buffer delay setting "
|
||||||
"is disabled. To change the actual buffer delay, this "
|
"is disabled. To change the actual buffer delay, this "
|
||||||
"setting has to be changed in the sound card driver. On Windows, press "
|
"setting has to be changed in the sound card driver. On Windows, press "
|
||||||
"the ASIO Setup button to open the driver settings panel. On Linux, "
|
"the ASIO Setup button to open the driver settings panel. On Linux, "
|
||||||
"use the Jack configuration tool to change the buffer size.<br>"
|
"use the Jack configuration tool to change the buffer size.<br>"
|
||||||
"If no buffer size is selected and all settings are disabled, an "
|
"If no buffer size is selected and all settings are disabled, an "
|
||||||
"unsupported buffer size is used by the driver. The llcon software "
|
"unsupported buffer size is used by the driver. The " ) + APP_NAME +
|
||||||
"will still work with this setting but with restricted performannce.<br>"
|
tr ( " software will still work with this setting but with restricted "
|
||||||
|
"performannce.<br>"
|
||||||
"The actual buffer delay has influence on the connection status, the "
|
"The actual buffer delay has influence on the connection status, the "
|
||||||
"current upload rate and the overall delay. The lower the buffer size, "
|
"current upload rate and the overall delay. The lower the buffer size, "
|
||||||
"the higher the probability of red light in the status indicator (drop "
|
"the higher the probability of red light in the status indicator (drop "
|
||||||
|
@ -153,10 +156,10 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
||||||
|
|
||||||
QString strSndCrdBufDelayTT = tr ( "If the buffer delay settings are "
|
QString strSndCrdBufDelayTT = tr ( "If the buffer delay settings are "
|
||||||
"disabled, it is prohibited by the audio driver to modify this "
|
"disabled, it is prohibited by the audio driver to modify this "
|
||||||
"setting from within the llcon software. On Windows, press "
|
"setting from within the " ) + APP_NAME +
|
||||||
"the ASIO Setup button to open the driver settings panel. On Linux, "
|
tr ( " software. On Windows, press the ASIO Setup button to open the "
|
||||||
"use the Jack configuration tool to change the buffer size." ) +
|
"driver settings panel. On Linux, use the Jack configuration tool to "
|
||||||
TOOLTIP_COM_END_TEXT;
|
"change the buffer size." ) + TOOLTIP_COM_END_TEXT;
|
||||||
|
|
||||||
rbtBufferDelayPreferred->setWhatsThis ( strSndCrdBufDelay );
|
rbtBufferDelayPreferred->setWhatsThis ( strSndCrdBufDelay );
|
||||||
rbtBufferDelayPreferred->setAccessibleName ( tr ( "128 samples setting radio button" ) );
|
rbtBufferDelayPreferred->setAccessibleName ( tr ( "128 samples setting radio button" ) );
|
||||||
|
@ -251,8 +254,8 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
||||||
lblUpstreamValue->setWhatsThis ( strConnStats );
|
lblUpstreamValue->setWhatsThis ( strConnStats );
|
||||||
ledOverallDelay->setWhatsThis ( strConnStats );
|
ledOverallDelay->setWhatsThis ( strConnStats );
|
||||||
ledOverallDelay->setToolTip ( tr ( "If this LED indicator turns red, "
|
ledOverallDelay->setToolTip ( tr ( "If this LED indicator turns red, "
|
||||||
"you will not have much fun using the llcon software." ) +
|
"you will not have much fun using the " ) + APP_NAME +
|
||||||
TOOLTIP_COM_END_TEXT );
|
tr ( " software." ) + TOOLTIP_COM_END_TEXT );
|
||||||
|
|
||||||
|
|
||||||
// init driver button
|
// init driver button
|
||||||
|
|
|
@ -56,9 +56,10 @@ CConnectDlg::CConnectDlg ( const bool bNewShowCompleteRegList,
|
||||||
|
|
||||||
// server address
|
// server address
|
||||||
QString strServAddrH = tr ( "<b>Server Address:</b> The IP address or URL "
|
QString strServAddrH = tr ( "<b>Server Address:</b> The IP address or URL "
|
||||||
"of the server running the llcon server software must be set here. An "
|
"of the server running the " ) + APP_NAME + tr ( " server software "
|
||||||
"optional port number can be added after the IP address or URL using "
|
"must be set here. An optional port number can be added after the IP "
|
||||||
"a comma as a separator, e.g, <i>" ) + DEFAULT_SERVER_ADDRESS + ":" +
|
"address or URL using a comma as a separator, e.g, <i>" ) +
|
||||||
|
DEFAULT_SERVER_ADDRESS + ":" +
|
||||||
QString().setNum ( LLCON_DEFAULT_PORT_NUMBER ) + tr ( "</i>. A list of "
|
QString().setNum ( LLCON_DEFAULT_PORT_NUMBER ) + tr ( "</i>. A list of "
|
||||||
"the most recent used server IP addresses or URLs is available for "
|
"the most recent used server IP addresses or URLs is available for "
|
||||||
"selection." );
|
"selection." );
|
||||||
|
|
|
@ -52,14 +52,17 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP,
|
||||||
"Make sure not to clip the input signal to avoid distortions of the "
|
"Make sure not to clip the input signal to avoid distortions of the "
|
||||||
"audio signal." );
|
"audio signal." );
|
||||||
|
|
||||||
QString strInpLevHTT = tr ( "If the llcon software is connected and "
|
QString strInpLevHTT = tr ( "If the " ) + APP_NAME +
|
||||||
|
tr ( " software is connected and "
|
||||||
"you play your instrument/sing in the microphone, the LED level "
|
"you play your instrument/sing in the microphone, the LED level "
|
||||||
"meter should flicker. If this is not the case, you have "
|
"meter should flicker. If this is not the case, you have "
|
||||||
"probably selected the wrong input channel (e.g. line in instead "
|
"probably selected the wrong input channel (e.g. line in instead "
|
||||||
"of the microphone input) or set the input gain too low in the "
|
"of the microphone input) or set the input gain too low in the "
|
||||||
"(Windows) audio mixer.<br>For a proper usage of the llcon software, "
|
"(Windows) audio mixer.<br>For a proper usage of the " ) + APP_NAME +
|
||||||
|
tr ( " software, "
|
||||||
"you should not hear your singing/instrument in the loudspeaker or "
|
"you should not hear your singing/instrument in the loudspeaker or "
|
||||||
"your headphone when the llcon software is not connected. This can "
|
"your headphone when the " ) + APP_NAME +
|
||||||
|
tr ( " software is not connected. This can "
|
||||||
"be achieved by muting your input audio channel in the Playback "
|
"be achieved by muting your input audio channel in the Playback "
|
||||||
"mixer (<b>not</b> the Recording mixer!)." ) + TOOLTIP_COM_END_TEXT;
|
"mixer (<b>not</b> the Recording mixer!)." ) + TOOLTIP_COM_END_TEXT;
|
||||||
|
|
||||||
|
@ -186,8 +189,8 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP,
|
||||||
lblDelay->setWhatsThis ( strLEDDelay );
|
lblDelay->setWhatsThis ( strLEDDelay );
|
||||||
ledDelay->setWhatsThis ( strLEDDelay );
|
ledDelay->setWhatsThis ( strLEDDelay );
|
||||||
ledDelay->setToolTip ( tr ( "If this LED indicator turns red, "
|
ledDelay->setToolTip ( tr ( "If this LED indicator turns red, "
|
||||||
"you will not have much fun using the llcon software." ) +
|
"you will not have much fun using the " ) + APP_NAME +
|
||||||
TOOLTIP_COM_END_TEXT );
|
tr ( " software." ) + TOOLTIP_COM_END_TEXT );
|
||||||
|
|
||||||
ledDelay->setAccessibleName ( tr ( "Delay status LED indicator" ) );
|
ledDelay->setAccessibleName ( tr ( "Delay status LED indicator" ) );
|
||||||
|
|
||||||
|
|
19
src/util.cpp
19
src/util.cpp
|
@ -311,11 +311,12 @@ CAboutDlg::CAboutDlg ( QWidget* parent ) : QDialog ( parent )
|
||||||
txvCredits->setOpenExternalLinks ( true );
|
txvCredits->setOpenExternalLinks ( true );
|
||||||
txvCredits->setText (
|
txvCredits->setText (
|
||||||
"<p>" // general description of llcon software
|
"<p>" // general description of llcon software
|
||||||
"<big><b>llcon</b> " + tr("The llcon software enables musicians to "
|
"<big>" + tr( "The " ) + APP_NAME +
|
||||||
"perform real-time jam sessions over the internet. There is a llcon "
|
tr ( " software enables musicians to perform real-time jam sessions "
|
||||||
"server which collects the audio data from each llcon client, "
|
"over the internet. There is a " ) + APP_NAME + tr ( " "
|
||||||
"mixes the audio data and sends the mix back to each client.") +
|
"server which collects the audio data from each " ) +
|
||||||
"</big></p><br>"
|
APP_NAME + tr ( " client, mixes the audio data and sends the mix back "
|
||||||
|
"to each client.") + "</big></p><br>"
|
||||||
"<p><font face=\"courier\">" // GPL header text
|
"<p><font face=\"courier\">" // GPL header text
|
||||||
"This program is free software; you can redistribute it and/or modify "
|
"This program is free software; you can redistribute it and/or modify "
|
||||||
"it under the terms of the GNU General Public License as published by "
|
"it under the terms of the GNU General Public License as published by "
|
||||||
|
@ -329,8 +330,8 @@ CAboutDlg::CAboutDlg ( QWidget* parent ) : QDialog ( parent )
|
||||||
"Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 "
|
"Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 "
|
||||||
"USA"
|
"USA"
|
||||||
"</font></p><br>"
|
"</font></p><br>"
|
||||||
"<p><b>" + // libraries used by this compilation of llcon
|
"<p><b>" + APP_NAME + // libraries used by this compilation of llcon
|
||||||
tr ( "llcon uses the following libraries, resources or code snippets:" ) +
|
tr ( " uses the following libraries, resources or code snippets:" ) +
|
||||||
"</b></p>"
|
"</b></p>"
|
||||||
"<ul>"
|
"<ul>"
|
||||||
"<li>Qt cross-platform application framework: "
|
"<li>Qt cross-platform application framework: "
|
||||||
|
@ -364,7 +365,7 @@ QString CAboutDlg::GetVersionAndNameStr ( const bool bWithHtml )
|
||||||
strVersionText += " *** ";
|
strVersionText += " *** ";
|
||||||
}
|
}
|
||||||
|
|
||||||
strVersionText += tr ( "llcon, Version " ) + VERSION;
|
strVersionText += APP_NAME + tr ( ", Version " ) + VERSION;
|
||||||
|
|
||||||
if ( bWithHtml )
|
if ( bWithHtml )
|
||||||
{
|
{
|
||||||
|
@ -375,7 +376,7 @@ QString CAboutDlg::GetVersionAndNameStr ( const bool bWithHtml )
|
||||||
strVersionText += "\n *** ";
|
strVersionText += "\n *** ";
|
||||||
}
|
}
|
||||||
|
|
||||||
strVersionText += tr ( "llcon, Low-Latency (internet) CONnection" );
|
strVersionText += APP_NAME + tr ( ", Internet Jam Session Software" );
|
||||||
|
|
||||||
if ( bWithHtml )
|
if ( bWithHtml )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue