[Summary] Added possibility to update sample rate list for devices on the fly on MAC

This commit is contained in:
GZharun 2014-07-08 12:27:20 +03:00
parent 9958f084e5
commit 0cf788ef12
7 changed files with 103 additions and 8 deletions

View file

@ -1656,6 +1656,19 @@ WTErr WCMRPortAudioDeviceManager::generateDeviceListImpl()
}
WTErr WCMRPortAudioDeviceManager::getDeviceSampleRatesImpl(const std::string & deviceName, std::vector<int>& sampleRates) const
{
sampleRates.clear ();
WTErr retVal = eNoErr;
DeviceInfo devInfo;
retVal = GetDeviceInfoByName(deviceName, devInfo);
sampleRates.assign(devInfo.m_AvailableSampleRates.begin(), devInfo.m_AvailableSampleRates.end() );
}
WTErr WCMRPortAudioDeviceManager::getDeviceBufferSizesImpl(const std::string & deviceName, std::vector<int>& buffers) const
{
WTErr retVal = eNoErr;