From a0a8ca026659fcbd2ab7b59192c14597b112c480 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Thu, 5 Mar 2009 09:30:58 +0000 Subject: [PATCH] implemented open ASIO setup dialog, fix in settings GUI --- src/clientsettingsdlg.cpp | 2 +- src/clientsettingsdlgbase.ui | 12 ++++++++++++ src/soundbase.h | 2 ++ windows/sound.h | 2 ++ 4 files changed, 17 insertions(+), 1 deletion(-) 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]; }