Skip to content

Bring back pending tracks - #9524

Merged
grliszas14 merged 3 commits into
audacity:masterfrom
grliszas14:any_position_recording3
Oct 3, 2025
Merged

grliszas14 merged 3 commits into
audacity:masterfrom
grliszas14:any_position_recording3

Conversation

@grliszas14

Copy link
Copy Markdown
Contributor

Resolves: #7564
Partially resolves: #9403

This brings back pending tracks and fixes recording start so it always match playcursor position (as long as it is behind last clip).

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

QA:

  • Autobot test cases have been run

@grliszas14
grliszas14 force-pushed the any_position_recording3 branch from 0e99105 to 936bd16 Compare October 2, 2025 09:40
Comment on lines 150 to 157

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not strictly related to your change, but fixes the sample view during recording, currently it is absolutely empty

Suggested change
int yZero = samplespainterutils::getWaveYPos(0.0, zoomMin, zoomMax, paddedMetrics.height, dB, true, dBRange, false);
yZero = paddedMetrics.top + std::max(-1, std::min(static_cast<int>(paddedMetrics.height + paddedMetrics.top), yZero));
const auto samples = samplespainterutils::getSampleData(*waveClip, index, paddedMetrics, dB, dBRange, zoomMax, zoomMin);
if (samples.size() == 0) {
samplespainterutils::drawCenterLine(painter, waveMetrics, params.style, yZero);
continue;
}
drawSampleStalk(samples, yZero, paddedMetrics, painter, params.style, params.showClipping);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will apply later with upcoming PR, I changed it and suddenly all builds on CI fail, need to debug it

@grliszas14
grliszas14 force-pushed the any_position_recording3 branch 2 times, most recently from 143c0a1 to a9776b2 Compare October 2, 2025 14:57
@grliszas14
grliszas14 force-pushed the any_position_recording3 branch from a9776b2 to 1267c27 Compare October 3, 2025 09:28
@grliszas14
grliszas14 merged commit e39d6de into audacity:master Oct 3, 2025
@grliszas14
grliszas14 deleted the any_position_recording3 branch October 3, 2025 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recording should honor Playhead Cursor Recording creates a track but UI does not update

2 participants