chaosprint / asak

A cross-platform audio recording/playback CLI tool with TUI, written in Rust.
MIT License
145 stars 3 forks source link

doesn't work on linux (brew) #14

Open abitrolly opened 1 week ago

abitrolly commented 1 week ago
✗ asak rec   
> Please enter the output wav file name: 2024-06-26T09:42:32Z.wav
ALSA lib dlmisc.c:339:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_pcm_pipewire.so (/home/linuxbrew/.linuxbrew/Cellar/alsa-lib/1.2.12/lib/alsa-lib/libasound_module_pcm_pipewire.so: cannot open shared object file: No such file or directory)
thread 'main' panicked at src/record.rs:190:48:
called `Result::unwrap()` on an `Err` value: BackendSpecific { err: BackendSpecificError { description: "ALSA function 'snd_pcm_open' failed with error 'ENXIO: No such device or address'" } }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
✗ asak -V
asak 0.3.3
chaosprint commented 1 week ago

seems to be an isolated case. need more system information. can you run https://github.com/RustAudio/cpal/blob/master/examples/beep.rs ?

abitrolly commented 1 week ago

@chaosprint no. how to run it?

chaosprint commented 1 week ago

@chaosprint no. how to run it?

  1. install rust https://www.rust-lang.org/tools/install
  2. git clone https://github.com/RustAudio/cpal.git
  3. cd cpal then cargo run --example beep
abitrolly commented 6 days ago

@chaosprint using brew own rust, it beeps okay.

$ cargo run --example beep
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.22s
     Running `target/debug/examples/beep`
Output device: default
Default output config: SupportedStreamConfig { channels: 2, sample_rate: SampleRate(44100), buffer_size: Range { min: 1, max: 4194304 }, sample_format: F32 }