Skip to content

bug: frontend: in Studio Mode the Audio Mixer does not mark audio sources in groups or nested scenes of the previewed scene (upstream obsproject/obs-studio#13297) #602

Closed

Description

@rdoupe

Upstream OBS bug, reported by lperovskaya in obsproject/obs-studio#13297 (OBS 32.1.1, confirmed upstream): in Studio Mode, the Audio Mixer marks and shows the audio sources of the previewed scene only when they sit directly in that scene. Audio sources inside a group, or inside a scene nested as a source, are left out, although all three play the same way once the scene goes to Program. Still present upstream and in this fork; upstream PR obsproject/obs-studio#13759 (Warchamp7) makes the check recursive but is not merged.

Location

  • frontend/widgets/AudioMixer.cpp updatePreviewSources() (line 407) walks the previewed scene with obs_scene_enum_items() (line 460), which only visits the scene's own items. A group or a nested scene is one item whose source has no audio of its own, so nothing inside it is added to the preview set.

Class

Wrong UI state (no crash, no effect on the output).

How it is reached

Studio Mode on, an empty scene in Program. Preview a scene with an audio source directly in it: the mixer shows the source as Preview. Preview a scene where the same kind of source is inside a group, or a scene that contains the first scene as a source: the mixer shows nothing for it.

Reproduced in the current release

AppImage 33.0.0-beta6-799, headless under a private Xvfb, with a small test module that builds the reporter's layout (MUSIC: a looping Media Source; GROUP: another Media Source inside a group; NESTED: the MUSIC scene as a source), turns Studio Mode on with the default empty scene in Program, previews each scene and reads the mixer:

Preview music direct music grouped
MUSIC shown, Preview hidden
GROUP hidden hidden (expected: shown, Preview)
NESTED hidden (expected: shown, Preview) hidden

Proposed fix and failing test

Fix (port of Warchamp7's obsproject/obs-studio#13759): walk visible groups and nested scenes too, so their audio sources are marked as Preview. Hidden items, and everything in a hidden group, stay out. The walk moves into a small helper (frontend/utility/preview-audio-sources.cpp, Qt Core only) so it can be tested without the mixer.

RED test (cmocka, test_preview_audio_sources, real libobs scenes and groups with a dummy audio input):

  • guard: an audio source directly in the scene;
  • an audio source in a group (a hidden one in the same group stays out);
  • an audio source in a nested scene;
  • a group inside a nested scene;
  • guard: a hidden group hides everything in it.

The middle three fail today in both libobs lanes, every run.

Activity

  1. rdoupe commented on Oct 13, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: this issue.

    1. RED: test_preview_audio_sources (5 cases) asks the Audio Mixer's preview helper which audio sources of a previewed scene it marks: a source in a group, in a nested scene, and in a group inside a nested scene are missed; guards check a direct source and a hidden group. 3 of 5 fail today.
    2. GREEN: walk visible groups and nested scenes too (port of Warchamp7's upstream fix), so their audio sources are marked as Preview in Studio Mode.
      PR today.
  2. rdoupe commented on Oct 13, 2026

    @rdoupe
    CollaboratorAuthor

    @lperovskaya you reported this in obsproject/obs-studio#13297 (in Studio Mode the Audio Mixer marks the previewed scene's audio sources only when they sit directly in that scene, leaving out sources inside a group or a nested scene), so a heads-up: it's fixed here in obs-rust by #603, with a regression test.

    Cause: the mixer found the previewed scene's audio sources by walking only that scene's own items, so it never looked inside groups or scenes added as sources. It now walks into groups and nested scenes too, the same sources that play once the scene goes to Program. The change follows Warchamp7's upstream PR (obsproject/obs-studio#13759), who is credited as co-author. In the obs-rust release, previewing a scene with the audio inside a group, or a scene containing your music scene as a source, showed nothing as Preview; a build with the fix shows those sources as Preview, and scenes with the audio directly in them are unchanged.

    Workaround on stock OBS: put audio sources you want to see in the mixer during preview directly in the scene, not inside a group or nested scene.

    It will be in the next obs-rust daily release after 0.1.0-beta.20261012: https://github.com/obs-rust/obs-studio/releases (Windows, macOS and Linux builds; on Arch it's obs-studio-rust-git in the AUR). obs-rust is an AI-assisted fork of OBS.

    If you get a chance to try it, a reply here on whether the mixer now shows your grouped and nested sources in preview would really help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions