mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-18 12:46:32 +01:00
[Summary] Added possibility to update sample rate list for devices on the fly on MAC
This commit is contained in:
parent
9958f084e5
commit
0cf788ef12
7 changed files with 103 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue