Repository navigation
11568 prefer lossy format on cloud audio preview - #11908
embarc-gabriel merged 3 commits into
Conversation
📝 WalkthroughWalkthroughThe change adds a Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: 🟠 High · up to Cloud previews can still be uploaded in the incompatible lossy format, leaving the primary waveform-preview workflow broken. This should be corrected before merge. Sequence Diagram(s)sequenceDiagram
participant ProjectActionsController
participant Au3AudioComService
participant Au3Exporter
participant Au3CloudConfiguration
participant platformInteractive
ProjectActionsController->>Au3AudioComService: updateAudioPreview
Au3AudioComService->>Au3Exporter: cloudPreferredAudioFormats(false)
Au3Exporter->>Au3CloudConfiguration: preferredAudioFormats(false)
Au3AudioComService->>Au3AudioComService: upload preview and return projectPage
Au3AudioComService-->>ProjectActionsController: upload result containing projectPage
ProjectActionsController->>platformInteractive: openUrl(projectPage)
🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description includes the issue reference and checklist responses, but it leaves the required short description and motivation section empty. The QA section also does not state whether testing was performed beyond the unchecked box. 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: Team
Run ID: 701d118e-b81c-4d20-9590-d08018b1a614
📥 Commits
Reviewing files that changed from the base of the PR and between a999a9c and 2460e0c1baf98a986760fe6231837d8df284aaed.
📒 Files selected for processing (10)
src/au3cloud/iau3cloudconfiguration.hsrc/au3cloud/internal/au3audiocomservice.cppsrc/au3cloud/internal/au3cloudconfiguration.cppsrc/au3cloud/internal/au3cloudconfiguration.hsrc/importexport/export/iexporter.hsrc/importexport/export/internal/au3/au3exporter.cppsrc/importexport/export/internal/au3/au3exporter.hsrc/project/internal/projectactionscontroller.cppsrc/stubs/au3cloud/au3cloudconfigurationstub.cppsrc/stubs/au3cloud/au3cloudconfigurationstub.h
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
| @@ -632,7 +633,7 @@ muse::RetVal<muse::ProgressPtr> Au3AudioComService::updateAudioPreview(au::proje | |||
| return; | |||
| } | |||
|
|
|||
| const auto preferredFormats = self->exporter()->cloudPreferredAudioFormats(); | |||
| const auto preferredFormats = self->exporter()->cloudPreferredAudioFormats(false); | |||
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
printf '%s\n' '--- changed file context ---'
sed -n '600,655p' src/au3cloud/internal/au3audiocomservice.cpp
printf '%s\n' '--- bound declarations and implementations ---'
rg -n -C 5 'cloudPreferredAudioFormats|preferLossless' src
printf '%s\n' '--- relevant diff summary ---'
git diff -- src/au3cloud/internal/au3audiocomservice.cppRepository: audacity/audacity
Length of output: 12249
🏁 Script executed:
printf '%s\n' '--- preferred-format implementation ---'
rg -n -C 12 'GetPreferredAudioFormats|PreferredAudioFormats' src libraries
printf '%s\n' '--- preview and export call-site context ---'
sed -n '960,1025p' src/au3cloud/internal/au3audiocomservice.cpp
rg -n -C 8 'cloudPreferredAudioFormats\(' srcRepository: audacity/audacity
Length of output: 24832
🏁 Script executed:
rg -n -C 15 'GetPreferredAudioFormats|preferredAudioFormats\(' .Repository: audacity/audacity
Length of output: 22371
Pass true for the lossless preview path.
GetPreferredAudioFormats(false) returns only audio/mpeg. The preview selects the first returned format, so it uses a lossy format instead of the intended lossless format.
2460e0c to
6339b8f
Compare
6339b8f to
8bf146d
Compare
11568 prefer lossy format on cloud audio preview (#11908)
Resolves: #11568
(short description of the changes and the motivation to make the changes)
Recommended:
QA: