talwat / lowfi

An extremely simple lofi player.
MIT License
389 stars 21 forks source link

No audio playback in Lowfi #17

Closed nfowlie closed 1 week ago

nfowlie commented 1 week ago

When using Lowfi I don't seem to be getting any audio playback. The application is saying it is playing and volume is set to 100.

I am on Arch using Lowfi v 1.4.0

talwat commented 1 week ago

Does it say it's actually playing a song?

I'm pushing an update now that adds a --debug flag which you could try to see if it's an issue with ALSA.

nfowlie commented 1 week ago

Yeah it says it is playing. image

talwat commented 1 week ago

Try updating to v1.4.1 and sending a screenshot with lowfi --debug

nfowlie commented 1 week ago

Included in the screenshot is cava. Showing that there is no audio being played. image

talwat commented 1 week ago

That is extremely odd. Do you have Alsa installed? Also, do other apps produce audio or is it just lowfi that's the exception?

nfowlie commented 1 week ago

Yeah alsa-lib is installed and all other audio applications produce audio. image

talwat commented 1 week ago

Did an older version of lowfi work properly? 1.4.0 reworked a lot of things so it's possible it might've broke some setups.

talwat commented 1 week ago

https://github.com/RustAudio/rodio/issues/173

It could be because of the audio crate I'm using. lowfi is tested against pipewire, so maybe you're using pulseaudio..?

nfowlie commented 1 week ago

1.4.0 is the first version I have tried. I just downgraded to 1.3.5 to test and still no audio.

nfowlie commented 1 week ago

Yes I am using pulseaudio. So this only supports pipewire for now?

talwat commented 1 week ago

Yes I am using pulseaudio. So this only supports pipewire for now?

I presume so, unfortunately. I'm using an audio library for rust called rodio, and so if they don't support pulseaudio then lowfi can't either.

In the meantime, you could try installing pulseaudio-alsa (or searching for it) and seeing if that makes any difference.

talwat commented 1 week ago

Update: On arch the package is called pulseaudio-alsa, so try that out and see if it works.

nfowlie commented 1 week ago

Yup that was it. Installing pulseaudio-alsa worked. I kind of thought I already had that installed.

Thank you very much. This should probably be added to the documentation.

talwat commented 1 week ago

Yep, I'm not very well-versed with Linux audio ironically which is why a lot of these weren't mentioned. Thanks!