Skip to content

namir-clap: apply_flush_events is documented as shared but the audio-processor flush hand-rolls it #97

Description

@ErwanLegrand

crates/namir-clap/src/params_ext.rs:305-306 vs :178-190

apply_flush_events's doc comment claims it is "shared between the main-thread and audio-processor flush implementations below", but the audio-processor impl hand-rolls the identical decode loop rather than calling it. Two copies of the same event decode is exactly the drift the helper exists to prevent, and which audio.rs:88-91 correctly avoids for apply_direct_and_mirror.

Fix: call it, passing an apply closure over apply_direct_and_mirror.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions