mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
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:
parent
6dd4d411b3
commit
e15ba3cd69
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue