Skip to content

Sequencer improvements#95

Merged
cklosters merged 6 commits into0.8from
sequencer_improvements
Jun 24, 2025
Merged

Sequencer improvements#95
cklosters merged 6 commits into0.8from
sequencer_improvements

Conversation

@TimGroeneboom
Copy link
Contributor

  • improved thread safety while loading / saving sequences
  • fixed issue where wrong output pins would get disconnected in AudioOutput of sequencer

- adapters get destroyed and re-created on new sequence load
- fixed disconnecting of audio pins while their owning bufferplayers where already deleted
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

@TimGroeneboom TimGroeneboom requested a review from Copilot April 14, 2025 13:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

system_modules/napsequence/src/sequenceplayer.cpp:395

  • The comparison directly on the atomic mTime without using load() may lead to incorrect behavior. Please load the current value of mTime into a local variable before performing comparisons.
if(mTime < 0.0)

@TimGroeneboom TimGroeneboom requested a review from Copilot April 14, 2025 13:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

@TimGroeneboom TimGroeneboom requested a review from Copilot April 14, 2025 13:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@cklosters cklosters added the sequencer Sequencer related Questions & Issues label May 29, 2025
@cklosters cklosters added this to the 0.8 milestone May 29, 2025

// Update time and adapters thread safe
// Update time
if(!mIsPaused.load())
Copy link
Member

@cklosters cklosters Jun 24, 2025

Choose a reason for hiding this comment

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

For future reference, you don't have to explicitly load the atomic, the operator is overloaded, no matter what ai tells you.

Unlike most assignment operators, the assignment operators for atomic types do not return a reference to their left-hand arguments. They return a copy of the stored value instead.

@cklosters cklosters merged commit 4ac552d into 0.8 Jun 24, 2025
3 checks passed
@cklosters cklosters deleted the sequencer_improvements branch June 24, 2025 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sequencer Sequencer related Questions & Issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants