termusic icon indicating copy to clipboard operation
termusic copied to clipboard

request for a snap package

Open soumyaDghosh opened this issue 1 year ago • 8 comments

Hi, this app is awesome. Would you mind creating a snap package? It'd be awesome!

soumyaDghosh avatar Jan 25 '24 17:01 soumyaDghosh

Problem is, I don't know anything about snap... If someone want to pack it, I could help though.

tramhao avatar Mar 06 '24 15:03 tramhao

Problem is, I don't know anything about snap... If someone want to pack it, I could help though.

Thank you.. count me in.

soumyaDghosh avatar Mar 06 '24 16:03 soumyaDghosh

@tramhao I was snapping termusic, but the problem is, why does it tries to access alsa.conf. Is it using alsa? Isn't it a very old kind of tech?

soumyaDghosh avatar Mar 21 '24 11:03 soumyaDghosh

we use cpal package to manage sound devices. Cpal use alsa under linux

tramhao avatar Mar 21 '24 12:03 tramhao

The paths that the program is looking for alsa seems very hardcoded. Can you help me to simplify those?

soumyaDghosh avatar Mar 21 '24 14:03 soumyaDghosh

ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default
thread '<unnamed>' panicked at playback/src/rusty_backend/mod.rs:122:65:
called `Result::unwrap()` on an `Err` value: DefaultStreamConfigError(DeviceNotAvailable)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@tramhao I am unable to understand what's the problem here. Can you kindly help?

soumyaDghosh avatar Mar 21 '24 17:03 soumyaDghosh

https://snapcraft.io/docs/alsa-interface

I found there some useful info.

The libasound2 library needs to be included in a snap’s stage-packages, of the part which uses ALSA, either directly or through some other package which brings it in (or manually compiled).

Do you have this lib included?

tramhao avatar Mar 22 '24 06:03 tramhao