bugfix: portaudio backend now handles blocked device correctly.
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1605 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -113,6 +113,11 @@ audioPortAudio::audioPortAudio( bool & _success_ful, mixer * _mixer ) :
|
||||
outDevIdx = Pa_GetDefaultOutputDevice();
|
||||
}
|
||||
|
||||
if( inDevIdx < 0 || outDevIdx < 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
double inLatency = (double)getMixer()->framesPerPeriod() / (double)sampleRate();
|
||||
double outLatency = (double)getMixer()->framesPerPeriod() / (double)sampleRate();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user