From 55b9554321a8a535d6f301401c2d438f3780d3b1 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Wed, 26 Oct 2011 19:58:28 +0000 Subject: [PATCH] update --- src/soundbase.cpp | 70 +++++++++++++++++++++++------------------------ 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/src/soundbase.cpp b/src/soundbase.cpp index 52ba6b45..e309891d 100755 --- a/src/soundbase.cpp +++ b/src/soundbase.cpp @@ -226,38 +226,38 @@ QString CSoundBase::SetDev ( const int iNewDev ) return strReturn; } -QVector CSoundBase::LoadAndInitializeFirstValidDriver() -{ - QVector vsErrorList; - - // load and initialize first valid ASIO driver - bool bValidDriverDetected = false; - int iCurDriverIdx = 0; - - // try all available drivers in the system ("lNumDevs" devices) - while ( !bValidDriverDetected && ( iCurDriverIdx < lNumDevs ) ) - { - // try to load and initialize current driver, store error message - const QString strCurError = - LoadAndInitializeDriver ( iCurDriverIdx ); - - vsErrorList.append ( strCurError ); - - if ( strCurError.isEmpty() ) - { - // initialization was successful - bValidDriverDetected = true; - - // store ID of selected driver - lCurDev = iCurDriverIdx; - - // empty error list shows that init was successful - vsErrorList.clear(); - } - - // try next driver - iCurDriverIdx++; - } - - return vsErrorList; -} +QVector CSoundBase::LoadAndInitializeFirstValidDriver() +{ + QVector vsErrorList; + + // load and initialize first valid ASIO driver + bool bValidDriverDetected = false; + int iCurDriverIdx = 0; + + // try all available drivers in the system ("lNumDevs" devices) + while ( !bValidDriverDetected && ( iCurDriverIdx < lNumDevs ) ) + { + // try to load and initialize current driver, store error message + const QString strCurError = + LoadAndInitializeDriver ( iCurDriverIdx ); + + vsErrorList.append ( strCurError ); + + if ( strCurError.isEmpty() ) + { + // initialization was successful + bValidDriverDetected = true; + + // store ID of selected driver + lCurDev = iCurDriverIdx; + + // empty error list shows that init was successful + vsErrorList.clear(); + } + + // try next driver + iCurDriverIdx++; + } + + return vsErrorList; +}