Add a return value to 'WCMRPortAudioDeviceManager::getDeviceAvailableSampleRates()'

(whilst technically, it doesn't report any encountered errors, it should nevertheless be returning some kind of error status)
This commit is contained in:
John Emmas 2014-05-06 09:33:54 +01:00 committed by Paul Davis
parent 6dd4d411b3
commit e15ba3cd69

View file

@ -1521,6 +1521,8 @@ void WCMRPortAudioDeviceManager::destroyCurrentDeviceImpl()
WTErr WCMRPortAudioDeviceManager::getDeviceAvailableSampleRates(DeviceID deviceId, std::vector<int>& sampleRates)
{
WTErr retVal = eNoErr;
sampleRates.clear();
const PaDeviceInfo *pPaDeviceInfo = Pa_GetDeviceInfo(deviceId);
@ -1554,6 +1556,8 @@ WTErr WCMRPortAudioDeviceManager::getDeviceAvailableSampleRates(DeviceID deviceI
sampleRates.push_back ((int)gAllSampleRates[sr]);
}
}
return retVal;
}