diff --git a/src/clientsettingsdlg.cpp b/src/clientsettingsdlg.cpp index c1816716..decb6596 100755 --- a/src/clientsettingsdlg.cpp +++ b/src/clientsettingsdlg.cpp @@ -185,7 +185,7 @@ void CClientSettingsDlg::hideEvent ( QHideEvent* hideEvent ) void CClientSettingsDlg::OnDriverSetupBut() { - // TODO write function in Windows sound interface + pClient->GetSndInterface()->OpenDriverSetup(); } void CClientSettingsDlg::OnSliderNetBuf ( int value ) diff --git a/src/clientsettingsdlgbase.ui b/src/clientsettingsdlgbase.ui index eb649eac..aaa081bc 100755 --- a/src/clientsettingsdlgbase.ui +++ b/src/clientsettingsdlgbase.ui @@ -248,6 +248,12 @@ + + + 110 + 0 + + QFrame::Panel @@ -272,6 +278,12 @@ + + + 110 + 0 + + QFrame::Panel diff --git a/src/soundbase.h b/src/soundbase.h index fc4ca683..cf3e6af6 100755 --- a/src/soundbase.h +++ b/src/soundbase.h @@ -47,6 +47,8 @@ public: bool IsRunning() const { return bRun; } virtual void Close() = 0; + virtual void OpenDriverSetup() {} + protected: // function pointer to callback function void (*fpCallback) ( CVector& psData, void* arg ); diff --git a/windows/sound.h b/windows/sound.h index 5219c7e0..5429e0aa 100755 --- a/windows/sound.h +++ b/windows/sound.h @@ -62,6 +62,8 @@ public: virtual int Init ( const int iNewPrefMonoBufferSize ); virtual void Close(); + virtual void OpenDriverSetup() { ASIOControlPanel(); } + int GetNumDev() { return lNumDevs; } std::string GetDeviceName ( const int iDiD ) { return cDriverNames[iDiD]; }