mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 11:06:32 +01:00
[Summary] Simplified device information retrieving. Previous complicity was related to previous workflow which has nothing to do with current workflow.
This commit is contained in:
parent
c9c7a0961a
commit
6009b609f6
1 changed files with 12 additions and 2 deletions
|
|
@ -2900,6 +2900,11 @@ WTErr WCMRCoreAudioDeviceManager::getDeviceSampleRatesImpl(const std::string & d
|
||||||
return retVal;
|
return retVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_CurrentDevice && m_CurrentDevice->DeviceName () == deviceName) {
|
||||||
|
sampleRates.assign(m_CurrentDevice->SamplingRates().begin(), m_CurrentDevice->SamplingRates().end() );
|
||||||
|
return retVal;
|
||||||
|
}
|
||||||
|
|
||||||
DeviceInfo devInfo;
|
DeviceInfo devInfo;
|
||||||
retVal = GetDeviceInfoByName(deviceName, devInfo);
|
retVal = GetDeviceInfoByName(deviceName, devInfo);
|
||||||
|
|
||||||
|
|
@ -2973,6 +2978,11 @@ WTErr WCMRCoreAudioDeviceManager::getDeviceBufferSizesImpl(const std::string & d
|
||||||
return retVal;
|
return retVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_CurrentDevice && m_CurrentDevice->DeviceName () == deviceName) {
|
||||||
|
bufferSizes.assign(m_CurrentDevice->BufferSizes().begin(), m_CurrentDevice->BufferSizes().end() );
|
||||||
|
return retVal;
|
||||||
|
}
|
||||||
|
|
||||||
DeviceInfo devInfo;
|
DeviceInfo devInfo;
|
||||||
retVal = GetDeviceInfoByName(deviceName, devInfo);
|
retVal = GetDeviceInfoByName(deviceName, devInfo);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue