better name for the channels

This commit is contained in:
Volker Fischer 2015-11-20 11:24:20 +00:00
parent 5685dfe384
commit b68e429953
2 changed files with 15 additions and 4 deletions

View File

@ -0,0 +1 @@
/Users/corrados/llcon/libs/opus/AUTHORS

View File

@ -441,11 +441,16 @@ QString CSound::CheckDeviceCapabilities ( const int iDriverIdx )
const bool bConvOK = ConvertCFStringToQString ( sPropertyStringValue,
sChannelNamesInput[iCurInCH] );
// use a defalut name in case there was an error or the name is empty
// add the "[n]:" at the beginning as is in the Audio-Midi-Setup
if ( !bConvOK || ( iPropertySize == 0 ) )
{
// use a defalut name in case there was an error or the name is empty
sChannelNamesInput[iCurInCH] =
QString ( "Channel %1" ).arg ( iCurInCH + 1 );
QString ( "%1: Channel %1" ).arg ( iCurInCH + 1 );
}
else
{
sChannelNamesInput[iCurInCH].prepend ( QString ( "%1: " ).arg ( iCurInCH + 1 ) );
}
}
@ -470,11 +475,16 @@ QString CSound::CheckDeviceCapabilities ( const int iDriverIdx )
const bool bConvOK = ConvertCFStringToQString ( sPropertyStringValue,
sChannelNamesOutput[iCurOutCH] );
// use a defalut name in case there was an error or the name is empty
// add the "[n]:" at the beginning as is in the Audio-Midi-Setup
if ( !bConvOK || ( iPropertySize == 0 ) )
{
// use a defalut name in case there was an error or the name is empty
sChannelNamesOutput[iCurOutCH] =
QString ( "Channel %1" ).arg ( iCurOutCH + 1 );
QString ( "%1: Channel %1" ).arg ( iCurOutCH + 1 );
}
else
{
sChannelNamesOutput[iCurOutCH].prepend ( QString ( "%1: " ).arg ( iCurOutCH + 1 ) );
}
}