implemented open ASIO setup dialog, fix in settings GUI

This commit is contained in:
Volker Fischer 2009-03-05 09:30:58 +00:00
parent 22ab17e84f
commit a0a8ca0266
4 changed files with 17 additions and 1 deletions

View file

@ -185,7 +185,7 @@ void CClientSettingsDlg::hideEvent ( QHideEvent* hideEvent )
void CClientSettingsDlg::OnDriverSetupBut() void CClientSettingsDlg::OnDriverSetupBut()
{ {
// TODO write function in Windows sound interface pClient->GetSndInterface()->OpenDriverSetup();
} }
void CClientSettingsDlg::OnSliderNetBuf ( int value ) void CClientSettingsDlg::OnSliderNetBuf ( int value )

View file

@ -248,6 +248,12 @@
</item> </item>
<item> <item>
<widget class="QLabel" name="TextLabelPreferredSndCrdBufDelay" > <widget class="QLabel" name="TextLabelPreferredSndCrdBufDelay" >
<property name="minimumSize" >
<size>
<width>110</width>
<height>0</height>
</size>
</property>
<property name="frameShape" > <property name="frameShape" >
<enum>QFrame::Panel</enum> <enum>QFrame::Panel</enum>
</property> </property>
@ -272,6 +278,12 @@
</item> </item>
<item> <item>
<widget class="QLabel" name="TextLabelActualSndCrdBufDelay" > <widget class="QLabel" name="TextLabelActualSndCrdBufDelay" >
<property name="minimumSize" >
<size>
<width>110</width>
<height>0</height>
</size>
</property>
<property name="frameShape" > <property name="frameShape" >
<enum>QFrame::Panel</enum> <enum>QFrame::Panel</enum>
</property> </property>

View file

@ -47,6 +47,8 @@ public:
bool IsRunning() const { return bRun; } bool IsRunning() const { return bRun; }
virtual void Close() = 0; virtual void Close() = 0;
virtual void OpenDriverSetup() {}
protected: protected:
// function pointer to callback function // function pointer to callback function
void (*fpCallback) ( CVector<short>& psData, void* arg ); void (*fpCallback) ( CVector<short>& psData, void* arg );

View file

@ -62,6 +62,8 @@ public:
virtual int Init ( const int iNewPrefMonoBufferSize ); virtual int Init ( const int iNewPrefMonoBufferSize );
virtual void Close(); virtual void Close();
virtual void OpenDriverSetup() { ASIOControlPanel(); }
int GetNumDev() { return lNumDevs; } int GetNumDev() { return lNumDevs; }
std::string GetDeviceName ( const int iDiD ) { return cDriverNames[iDiD]; } std::string GetDeviceName ( const int iDiD ) { return cDriverNames[iDiD]; }