Repository navigation
Enable ASIO - #11330
Enable ASIO#11330
Conversation
c2ef24d to
cfd780a
Compare
|
Caution Review failedAn error occurred during the review process. Please try again later. 📝 WalkthroughWalkthroughAdds ASIO audio device support on Windows: DeviceManager gains ASIO detection, capability caching via preferences, sample-rate querying, control panel access, and post-rescan cache application. AudioIOBase and AudioIO adjust PortMixer probing and sample-rate selection for ASIO devices. Au3AudioDevicesProvider and IAudioDevicesProvider add a settable "use device sample rate" preference, a change notification, and control-panel invocation. Preferences QML introduces an AsioSection UI wired to a new configuration-model property, and build/dependency manifests add the ASIO SDK source dependency and update muse_deps. Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant AsioSection
participant CommonAudioApiConfigurationModel
participant Au3AudioDevicesProvider
participant DeviceManager
AsioSection->>CommonAudioApiConfigurationModel: showAsioControlPanel()
CommonAudioApiConfigurationModel->>Au3AudioDevicesProvider: showAsioControlPanel()
Au3AudioDevicesProvider->>Au3AudioDevicesProvider: resolve panel device index
Au3AudioDevicesProvider->>DeviceManager: ShowAsioControlPanel(paIndex)
sequenceDiagram
participant DeviceManager
participant PortAudio
participant Preferences
DeviceManager->>DeviceManager: IsAsioDevice(paDeviceIndex)
DeviceManager->>PortAudio: query ASIO device info
DeviceManager->>Preferences: cache channel/sample-rate info by driver key
DeviceManager->>Preferences: ApplyCachedAsioDeviceInfo() on Rescan()
DeviceManager->>DeviceManager: UpdateAsioDeviceCaps(paDeviceIndex)
DeviceManager->>DeviceManager: update DeviceSourceMap numChannels
Suggested labels: audio, windows, ASIO, preferences Suggested reviewers: please assign based on ownership of au3-audio-devices, au3-audio-io, and preferences QML modules Poem: 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Warning Review ran into problems🔥 ProblemsLinked repositories: Your configuration references 1 linked repositories, but your current plan allows 0. Analyzed ``, skipped Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
au3/libraries/au3-audio-devices/DeviceManager.cpp (1)
444-459: 🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy liftKeep uncached ASIO devices in the device maps.
With lazy ASIO enumeration, a clean prefs profile has no cached channel caps, so
ApplyCachedAsioDeviceInfo()leaves ASIO devices with unknown/zero caps. The existingmaxInputChannels > 0/maxOutputChannels > 0gates then skipAddSources(), so the device never reaches the maps that downstream selection uses beforeUpdateAsioDeviceCaps()can populate the cache.Possible localized fix
for (int i = 0; i < nDevices; i++) { const PaDeviceInfo* info = Pa_GetDeviceInfo(i); - if (info->maxOutputChannels > 0) { + const bool isAsio = DeviceManager::IsAsioDevice(i); + if (info->maxOutputChannels > 0 || isAsio) { AddSources(i, info->defaultSampleRate, &mOutputDeviceSourceMaps, 0); } - if (info->maxInputChannels > 0) { + if (info->maxInputChannels > 0 || isAsio) { AddSources(i, info->defaultSampleRate, &mInputDeviceSourceMaps, 1); } }As per path instructions,
*: only report issues of major or critical severity.Source: Path instructions
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: 6ed3dec6-7671-4d92-b0c3-b6832c711702
📥 Commits
Reviewing files that changed from the base of the PR and between 1257eae and 54312a10b59f4d036878431df6d25760aca100de.
📒 Files selected for processing (14)
au3/libraries/au3-audio-devices/AudioIOBase.cppau3/libraries/au3-audio-devices/DeviceManager.cppau3/libraries/au3-audio-devices/DeviceManager.hau3/libraries/au3-audio-io/AudioIO.cppbuildscripts/cmake/DependencyManifest.cmakemuse_depssrc/au3audio/internal/au3audiodevicesprovider.cppsrc/au3audio/internal/au3audiodevicesprovider.hsrc/audio/iaudiodevicesprovider.hsrc/preferences/qml/Audacity/Preferences/AudioPreferencesPage.qmlsrc/preferences/qml/Audacity/Preferences/CMakeLists.txtsrc/preferences/qml/Audacity/Preferences/commonaudioapiconfigurationmodel.cppsrc/preferences/qml/Audacity/Preferences/commonaudioapiconfigurationmodel.hsrc/preferences/qml/Audacity/Preferences/internal/AsioSection.qml
Patch portaudio to prevent audio drops on startup
Resolves: #10828
Recommended:
QA: