Skip to content

Comments

feat: Add SoundGroup operator and localization#1479

Open
yuto-trd wants to merge 2 commits intomainfrom
yuto-trd/sound-group
Open

feat: Add SoundGroup operator and localization#1479
yuto-trd wants to merge 2 commits intomainfrom
yuto-trd/sound-group

Conversation

@yuto-trd
Copy link
Member

@yuto-trd yuto-trd commented Feb 3, 2026

Description

Add a new SoundGroup operator that allows grouping audio elements in the project. This includes the SoundGroup class for audio management and the SoundGroupOperator for handling grouping operations.

Breaking changes

None

Fixed issues

None

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 38c602671d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +36 to +37
Children[0].Compose(context);
var childOutput = context.GetOutputNodes().First();

Choose a reason for hiding this comment

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

P2 Badge Guard against empty outputs for single-child groups

When the only child cannot produce a sound source (e.g., missing media), Sound.Compose clears the context and returns without marking any outputs. In that case context.GetOutputNodes().First() will throw InvalidOperationException, so a SoundGroup with one invalid child crashes instead of resulting in silence. Consider checking for an empty output set (like the multi-child path implicitly handles) and clearing/returning when no outputs are present.

Useful? React with 👍 / 👎.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

The following TODO comments were found:

// TODO: Rendererもnullableにする

// TODO: rendererもnullableにする

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

Code Coverage

Package Line Rate Branch Rate Complexity Health
Beutl.Operators 2% 0% 120
Beutl.Editor 92% 89% 742
Beutl.Core 40% 36% 2964
Beutl.Engine 21% 19% 13690
Beutl.Threading 100% 93% 122
Beutl.Utilities 73% 67% 358
Beutl.Configuration 39% 19% 288
Beutl.Extensibility 14% 16% 100
Beutl.ProjectSystem 19% 11% 1893
Beutl.Language 0% 20% 942
Summary 26% (13317 / 52009) 25% (3679 / 14591) 21219

Minimum allowed line rate is 0%

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.

1 participant