Repository navigation
Fix generating tone from a macro or a script. - #10870
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between 74a028cc9ba05ed2c47788d2dda00e3f983c90a1 and d0862b0. 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
|
@DavidBailes we have outdated certificates on artifactory.audacityteam.org, that's why the pipeline is failing. Should be fixed in a day or two. |
|
Thanks for the info. It's now fixed. |
|
@DavidBailes thank you! |
Problem. The results of generating a tone from a macro or script are unpredicable. This is because mFrequency1 and mAmplitude are not being set. There is a function posSet(), which I presume was meant to be called by DoSet() in ShuttleAutomation.h. However the latter function appears not be be called at all. Fix. Remove posSet(), and simply call PosSet() in ToneGenBase::ProcessInitialize().
Resolves: #4280
Problem.
The results of generating a tone from a macro or script are unpredicable. This is because mFrequency1 and mAmplitude are not being set. There is a function posSet(), which I presume was meant to be called by DoSet() in ShuttleAutomation.h. However the latter function appears not be be called at all.
Fix.
Remove posSet(), and simply call PosSet() in ToneGenBase::ProcessInitialize()
Recommended:
QA: