bug fix
This commit is contained in:
parent
b807d001de
commit
de13a71735
4 changed files with 6 additions and 19 deletions
|
@ -57,9 +57,6 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent,
|
|||
TextNetBufSiFactOut->setWhatsThis ( strNetwBlockSize );
|
||||
GroupBoxNetwBuf->setWhatsThis ( strNetwBlockSize );
|
||||
|
||||
// init timing jitter text label
|
||||
//TextLabelStdDevTimer->setText ( "" );
|
||||
|
||||
// init delay information controls
|
||||
CLEDOverallDelay->SetUpdateTime ( 2 * PING_UPDATE_TIME );
|
||||
CLEDOverallDelay->Reset();
|
||||
|
@ -341,16 +338,9 @@ void CClientSettingsDlg::OnPingTimeResult ( int iPingTime )
|
|||
|
||||
void CClientSettingsDlg::UpdateDisplay()
|
||||
{
|
||||
if ( pClient->IsRunning() )
|
||||
{
|
||||
// response time
|
||||
//TextLabelStdDevTimer->setText ( QString().
|
||||
// setNum ( pClient->GetTimingStdDev(), 'f', 2 ) + " ms" );
|
||||
}
|
||||
else
|
||||
if ( !pClient->IsRunning() )
|
||||
{
|
||||
// clear text labels with client parameters
|
||||
//TextLabelStdDevTimer->setText ( "" );
|
||||
TextLabelPingTime->setText ( "" );
|
||||
TextLabelBufferDelay->setText ( "" );
|
||||
TextLabelOverallDelay->setText ( "" );
|
||||
|
|
|
@ -910,7 +910,7 @@
|
|||
<item>
|
||||
<layout class="QVBoxLayout" >
|
||||
<property name="spacing" >
|
||||
<number>0</number>
|
||||
<number>2</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="lPingTime_3" >
|
||||
|
|
|
@ -327,7 +327,7 @@ std::string CSound::LoadAndInitializeDriver ( int iDriverIdx )
|
|||
return "The audio driver could not be initialized.";
|
||||
}
|
||||
|
||||
const std::string strStat = GetAndCheckSoundCardProperties();
|
||||
const std::string strStat = PrepareDriver();
|
||||
|
||||
// store ID of selected driver if initialization was successful
|
||||
if ( strStat.empty() )
|
||||
|
@ -351,7 +351,7 @@ bool CSound::LoadAndInitializeFirstValidDriver()
|
|||
{
|
||||
if ( ASIOInit ( &driverInfo ) == ASE_OK )
|
||||
{
|
||||
if ( GetAndCheckSoundCardProperties().empty() )
|
||||
if ( PrepareDriver().empty() )
|
||||
{
|
||||
// initialization was successful
|
||||
bValidDriverDetected = true;
|
||||
|
@ -379,7 +379,7 @@ bool CSound::LoadAndInitializeFirstValidDriver()
|
|||
return bValidDriverDetected;
|
||||
}
|
||||
|
||||
std::string CSound::GetAndCheckSoundCardProperties()
|
||||
std::string CSound::PrepareDriver()
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -592,9 +592,6 @@ void CSound::Close()
|
|||
// wait for the thread to terminate
|
||||
Sleep ( 500 );
|
||||
|
||||
// dispose ASIO buffers
|
||||
ASIODisposeBuffers();
|
||||
|
||||
// set flag to open devices the next time it is initialized
|
||||
bChangParamIn = true;
|
||||
bChangParamOut = true;
|
||||
|
|
|
@ -97,7 +97,7 @@ public:
|
|||
protected:
|
||||
bool LoadAndInitializeFirstValidDriver();
|
||||
std::string LoadAndInitializeDriver ( int iIdx );
|
||||
std::string GetAndCheckSoundCardProperties();
|
||||
std::string PrepareDriver();
|
||||
void InitRecordingAndPlayback();
|
||||
|
||||
// audio hardware buffer info
|
||||
|
|
Loading…
Reference in a new issue