-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try to fix Misconfigured ASIO4ALL config can't be corrected #117
- Loading branch information
Showing
6 changed files
with
38 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,8 @@ CSound* pSound; | |
/******************************************************************************\ | ||
* Common * | ||
\******************************************************************************/ | ||
QString CSound::LoadAndInitializeDriver ( int iDriverIdx ) | ||
QString CSound::LoadAndInitializeDriver ( int iDriverIdx, | ||
bool bOpenDriverSetup ) | ||
{ | ||
// load driver | ||
loadAsioDriver ( cDriverNames[iDriverIdx] ); | ||
|
@@ -67,6 +68,13 @@ QString CSound::LoadAndInitializeDriver ( int iDriverIdx ) | |
} | ||
else | ||
{ | ||
// if requested, open ASIO driver setup in case of an error | ||
if ( bOpenDriverSetup ) | ||
{ | ||
OpenDriverSetup(); | ||
QMessageBox::question ( nullptr, APP_NAME, "Are you done with your ASIO driver settings of device " + GetDeviceName ( iDriverIdx ) + "?", QMessageBox::Yes ); | ||
This comment has been minimized.
Sorry, something went wrong.
ann0see
Member
|
||
} | ||
|
||
// driver cannot be used, clean up | ||
asioDrivers->removeCurrentDriver(); | ||
This comment has been minimized.
Sorry, something went wrong. |
||
} | ||
|
@@ -480,12 +488,12 @@ CSound::CSound ( void (*fpNewCallback) ( CVector<int16_t>& psData, void* a | |
const int iCtrlMIDIChannel, | ||
const bool bNoAutoJackConnect) : | ||
CSoundBase ( "ASIO", true, fpNewCallback, arg, iCtrlMIDIChannel, bNoAutoJackConnect ), | ||
vSelectedInputChannels ( NUM_IN_OUT_CHANNELS ), | ||
vSelectedOutputChannels ( NUM_IN_OUT_CHANNELS ), | ||
lNumInChan ( 0 ), | ||
lNumInChanPlusAddChan ( 0 ), | ||
lNumOutChan ( 0 ), | ||
dInOutLatencyMs ( 0.0 ) // "0.0" means that no latency value is available | ||
dInOutLatencyMs ( 0.0 ), // "0.0" means that no latency value is available | ||
vSelectedInputChannels ( NUM_IN_OUT_CHANNELS ), | ||
vSelectedOutputChannels ( NUM_IN_OUT_CHANNELS ) | ||
{ | ||
int i; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@pljones concerning this commit, I am a bit worried about the functionality. Even if we fix ASIO4ALL errors, Jamulus exits after...