Skip to content

Alsa loopback example does not work in release mode #97

@steckes

Description

@steckes

Bug Description

When I run the loopback example in release mode on Linux, the audio input does not work and the peak meter stays at -inf. Running a development build works fine.

Steps To Reproduce

Works: cargo run --example loopback
Does not work: cargo run --example loopback --release

Expected Behavior

Peak meter should detect input signal in release build and input audio should play on output device.

Actual Behavior

Peak meter stays at -inf and no audio is audible on output device.

Environment

  • OS: Fedora Linux 42 (and tested on current Raspberry Pi OS)
  • Audio driver (enable info logs): alsa
  • Rust Version: 1.89.0
  • Project Version/Commit (see Cargo.lock): 0.1.0 / 7f73ef5

Additional Context

/

Possible Solution

/

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-ALSAIssues regarding the ALSA backendP-LinuxIssues and PRs targetting LinuxbugSomething isn't working

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions