Skip to content

Conversation

@yuto-trd
Copy link
Member

@yuto-trd yuto-trd commented Dec 5, 2025

Description

Breaking changes

Fixed issues

Copilot AI review requested due to automatic review settings December 5, 2025 13:23
@github-actions
Copy link
Contributor

github-actions bot commented Dec 5, 2025

No TODO comments were found.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 5, 2025

Code Coverage

Package Line Rate Branch Rate Complexity Health
Beutl.Operators 4% 0% 76
Beutl.Core 34% 31% 3142
Beutl.Engine 27% 24% 9781
Beutl.Threading 100% 94% 118
Beutl.Utilities 73% 67% 358
Beutl.Configuration 38% 19% 282
Beutl.Extensibility 2% 0% 105
Beutl.ProjectSystem 16% 10% 1852
Beutl.Language 0% 0% 656
Summary 27% (10551 / 39076) 25% (2807 / 11035) 16370

Minimum allowed line rate is 0%

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.

Pull request overview

This PR refactors the audio system by moving the OffsetPosition property from the concrete SourceSound class to the abstract Sound base class. This change enables all sound types to support audio offset positioning, not just source sounds. The PR also integrates the offset functionality into the audio processing pipeline and includes improvements to the audio context's node lifecycle management.

  • Moved OffsetPosition property to Sound base class for broader applicability
  • Integrated ShiftNode into the audio processing chain to apply the offset
  • Removed overly restrictive validation that prevented negative time shifts (which are valid for offsetting audio backwards)
  • Added cleanup logic in AudioContext.EndUpdate to prevent reused nodes from retaining references to disposed nodes

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/Beutl.Engine/Audio/SourceSound.cs Removed OffsetPosition property that has been moved to base class
src/Beutl.Engine/Audio/Sound.cs Added OffsetPosition property and integrated ShiftNode into the audio processing pipeline
src/Beutl.Engine/Audio/Graph/AudioContext.cs Removed validation preventing negative shifts, improved null-check pattern, and added cleanup logic to prevent dangling node references

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@yuto-trd yuto-trd merged commit d3e215b into main Dec 5, 2025
10 checks passed
@yuto-trd yuto-trd deleted the fix/sound-offset-property branch December 5, 2025 14:23
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.

2 participants