coolbutuseless / anotherworld

AnotherWorld ported to R
MIT License
74 stars 3 forks source link

Audio on Linux #6

Open Enchufa2 opened 2 years ago

Enchufa2 commented 2 years ago

This is so much fun! :) I just wanted to let you know that {beepr} works on Linux. If you check beepr:::play_file you'll see that it tries several commands, such as paplay (from pulseaudio-utils), aplay (from alsa-utils) or even vlc. pw-play (from pipewire-utils) may be available in more up-to-date systems. ffplay (from ffmpeg) is another candidate, and I noticed that I have play installed too, from package sox. Hope it helps.

coolbutuseless commented 2 years ago

Thanks @Enchufa2! Could you try the latest release on linux?

I added 'beepr' playback for systems detected as unix, but have no way to test.

https://github.com/coolbutuseless/anotherworld/commit/1908a76726261aaa49a9ff0f8917b02928194dc6

daniel-j-miller commented 2 years ago

Sound is working on Ubuntu! I am still dying...

coolbutuseless commented 2 years ago

Thanks @daniel-j-miller

I'll leave this issue open to remind myself to pull the "play_file()" out of beepr and include in this repo.

It feels a bit bad to be using the triple-colon ::: to access beepr:::play_file()

Enchufa2 commented 2 years ago

Working fine here on Fedora too!

Enchufa2 commented 2 years ago

And why is there no music? Is the asset missing or is it a technical issue?

coolbutuseless commented 2 years ago

@Enchufa2 I haven't looked at music yet.

ekianjo commented 2 years ago

I don't have any sound on my end, and I tested on different distros. Should I install some specific package in Linux for that?

coolbutuseless commented 2 years ago

@ekianjo please read the first comment in this thread.

This game relies on 'beepr' for sound, so get that working on your machine first.

See also documentation for "beepr::beep"

ekianjo commented 2 years ago

sorry about my issue, it's actually working, I tried on a different Linux machine and it was fine.