implemented open ASIO setup dialog, fix in settings GUI
This commit is contained in:
parent
22ab17e84f
commit
a0a8ca0266
4 changed files with 17 additions and 1 deletions
|
@ -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 )
|
||||
|
|
|
@ -248,6 +248,12 @@
|
|||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="TextLabelPreferredSndCrdBufDelay" >
|
||||
<property name="minimumSize" >
|
||||
<size>
|
||||
<width>110</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="frameShape" >
|
||||
<enum>QFrame::Panel</enum>
|
||||
</property>
|
||||
|
@ -272,6 +278,12 @@
|
|||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="TextLabelActualSndCrdBufDelay" >
|
||||
<property name="minimumSize" >
|
||||
<size>
|
||||
<width>110</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="frameShape" >
|
||||
<enum>QFrame::Panel</enum>
|
||||
</property>
|
||||
|
|
|
@ -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<short>& psData, void* arg );
|
||||
|
|
|
@ -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]; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue