summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2014-05-06 09:33:54 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2014-05-06 09:33:54 +0100
commitb9fab9ea280e63ed9edbe27a673471a91594fe9d (patch)
tree42d1eb9b118aa37711086743beaecd9261893076 /libs
parent8d0ec2403f3444e3a53d16b21f2f8557abd71b55 (diff)
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)
Diffstat (limited to 'libs')
-rw-r--r--libs/backends/wavesaudio/wavesapi/devicemanager/WCMRPortAudioDeviceManager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRPortAudioDeviceManager.cpp b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRPortAudioDeviceManager.cpp
index 6efc5c2ae4..1e2b700fb3 100644
--- a/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRPortAudioDeviceManager.cpp
+++ b/libs/backends/wavesaudio/wavesapi/devicemanager/WCMRPortAudioDeviceManager.cpp
@@ -1469,6 +1469,8 @@ void WCMRPortAudioDeviceManager::destroyCurrentDeviceImpl()
WTErr WCMRPortAudioDeviceManager::getDeviceAvailableSampleRates(DeviceID deviceId, std::vector<int>& sampleRates)
{
+ WTErr retVal = eNoErr;
+
sampleRates.clear();
const PaDeviceInfo *pPaDeviceInfo = Pa_GetDeviceInfo(deviceId);
@@ -1502,6 +1504,8 @@ WTErr WCMRPortAudioDeviceManager::getDeviceAvailableSampleRates(DeviceID deviceI
sampleRates.push_back ((int)gAllSampleRates[sr]);
}
}
+
+ return retVal;
}