Skip to content

Problem with playback under arch linux. #369

@perlindgren

Description

@perlindgren

Hi

When trying out the latest master I get.

cargo run --example beep
warning: field is never used: `can_pause`
   --> src/host/alsa/mod.rs:501:5
    |
501 |     can_pause: bool,
    |     ^^^^^^^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default

    Finished dev [unoptimized + debuginfo] target(s) in 0.31s
     Running `target/debug/examples/beep`
Error: A backend-specific error has occurred: buffer time could not be set: Invalid argument

I'm on arch Linux using Jack, all packages recently updated and other sound applications (Jack, pulseaudio, alsa) works as expected.

cargo run --example enumerate
warning: field is never used: `can_pause`
   --> src/host/alsa/mod.rs:501:5
    |
501 |     can_pause: bool,
    |     ^^^^^^^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default

   Compiling cpal v0.11.0 (/home/pln/rust/adder/cpal)
    Finished dev [unoptimized + debuginfo] target(s) in 1.92s
     Running `target/debug/examples/enumerate`
Supported hosts:
  [Alsa]
Available hosts:
  [Alsa]
ALSA
  Default Input Device:
    Some("default")
  Default Output Device:
    Some("default")
  Devices: 
  1. "jack"
    Default input stream format:
      Format { channels: 2, sample_rate: SampleRate(44100), data_type: F32 }
    All supported input stream formats:
      1.1. SupportedFormat { channels: 2, min_sample_rate: SampleRate(44100), max_sample_rate: SampleRate(44100), data_type: F32 }
    Default output stream format:
      Format { channels: 2, sample_rate: SampleRate(44100), data_type: F32 }
    All supported output stream formats:
      1.1. SupportedFormat { channels: 2, min_sample_rate: SampleRate(44100), max_sample_rate: SampleRate(44100), data_type: F32 }
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dsnoop.c:641:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_usb_stream.c:508:(_snd_pcm_usb_stream_open) Unknown field hint
ALSA lib pcm_usb_stream.c:508:(_snd_pcm_usb_stream_open) Unknown field hint
  2. "hdmi:CARD=HDMI,DEV=0"
Error: DeviceNotAvailable
ALSA lib pcm_usb_stream.c:508:(_snd_pcm_usb_stream_open) Unknown field hint
ALSA lib pcm_usb_stream.c:508:(_snd_pcm_usb_stream_open) Unknown field hint

I have a similar setup on my laptop, arch, Jack etc. And there it works, so either my setup is wrong, or I hit a bug in cpal.

Any thoughts/ideas. What to try next?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions