Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

fix(editor): retain audio settings when editing mixer buses

yhh964fd774dcba
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ce9efed4f..90b05aaef 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,8 @@ published separately; it ships inside the editor.
### Fixed
+- **Mixer bus edits retain the project's voice budget.** Adding, changing or removing a bus preserves the other audio settings, including an explicit unlimited voice count, instead of silently restoring the runtime default limit.
+
- **Unchanged 2D joints retain their solver state.** Paused collision edits, full mutation-history refreshes and identical joint writes preserve existing constraints instead of destroying and recreating them. Missing solver joints recover on reconciliation, changes to the live Canvas scale rebuild joint dimensions, and older cores observe joint writes after a previous physics run in the same tick. All six joint types retain their enabled and partner-lifetime behavior.
## [0.89.2] - 2026-10-16
diff --git a/plugins/audio-mixer/src/model.ts b/plugins/audio-mixer/src/model.ts
index b4c2067a2..802890c92 100644
--- a/plugins/audio-mixer/src/model.ts
+++ b/plugins/audio-mixer/src/model.ts
@@ -45,7 +45,7 @@ export function patchBus(
} else {
buses.push({ name, ...patch });
}
- return { buses };
+ return { ...config, buses };
}
/** A name no strip has yet, for the Add button. */
diff --git a/plugins/audio-mixer/tests/model.test.ts b/plugins/audio-mixer/tests/model.test.ts
index 394bb3e63..744885842 100644
--- a/plugins/audio-mixer/tests/model.test.ts
+++ b/plugins/audio-mixer/tests/model.test.ts
@@ -35,6 +35,16 @@ describe('the strips a project shows', () => {
});
describe('editing one bus', () => {
+ it.each([0, 4, 128])('preserves the voice budget %i through add, edit and removal', maxVoices => {
+ const initial = { maxVoices };
+ const added = patchBus(initial, 'ambience', { volume: 0.25 });
+ const edited = patchBus(added, 'ambience', { muted: true });
+ const removed = patchBus(edited, 'ambience', null);
+ expect([added.maxVoices, edited.maxVoices, removed.maxVoices]).toEqual([maxVoices, maxVoices, maxVoices]);
+ expect(removed.buses).toEqual([]);
+ expect(initial).toEqual({ maxVoices });
+ });
+
it('declares a built-in the first time it is touched', () => {
// Nothing was written down before: the volume came from the engine.
expect(patchBus({}, 'sfx', { volume: 0.5 })).toEqual({ buses: [{ name: 'sfx', volume: 0.5 }] });
diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjs
index bc5512145..36ee074ac 100644
--- a/tools/releaseNotes.mjs
+++ b/tools/releaseNotes.mjs
@@ -28,6 +28,8 @@ export const NOTES_FLOOR = 'v0.65.0';
* the reader recognises anyway.
*/
export const NOTED = {
+ 'fix(editor): retain audio settings when editing mixer buses':
+ { note: "Mixer bus edits retain the project's voice budget." },
'fix(physics): preserve unchanged joint projections':
{ note: 'Unchanged 2D joints retain their solver state.' },
'fix(ecs): scope native mutations to world ownership':