Repository navigation
12155 Share audio to cloud with correct number of channels - #12157
embarc-gabriel merged 1 commit into
Conversation
📝 WalkthroughWalkthroughThe change adds a shared helper that selects Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Severity of issue fixed: Medium Merge Risk: 🟡 Moderate · up to Switching projects while sharing can upload audio from the wrong project. The export must remain bound to the requested project before merge. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Warning Linked repositories: Public OSS repositories can only analyze public repositories installed in this organization. No linked repositories were 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Advanced
Run ID: a3e38c03-a044-4c91-8425-405f5dbda609
📒 Files selected for processing (1)
src/au3cloud/internal/au3audiocomservice.cpp
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
| options[importexport::IExporter::OptionKey::ExportChannelsType] | ||
| = muse::Val(static_cast<int>(importexport::ExportChannelsPref::ExportChannels::STEREO)); | ||
| options[importexport::IExporter::OptionKey::ExportChannels] = muse::Val(2); | ||
| = muse::Val(static_cast<int>(exportChannelsType(*au3Project))); |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
Pass project to exportData in shareAudio.
shareAudio computes ExportChannelsType from its captured project. The call at line 1049 omits that project. Au3Exporter::exportData then reads globalContext()->currentProject() and uses it for the audio tracks and processor. Because shareAudio runs in a detached thread, the active project can change between these operations. The exporter can therefore apply one project's channel type to another project's audio. Pass project as the fourth argument.
7cce26a to
83a24c5
Compare
12155 Share audio to cloud with correct number of channels (#12157)
Resolves: #12155
Get the number of channels from the project content.
Recommended:
QA: