anotherworld icon indicating copy to clipboard operation
anotherworld copied to clipboard

Audio on Linux

Open Enchufa2 opened this issue 3 years ago • 9 comments

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.

Enchufa2 avatar Jul 28 '22 09:07 Enchufa2

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

coolbutuseless avatar Jul 28 '22 09:07 coolbutuseless

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

daniel-j-miller avatar Jul 28 '22 10:07 daniel-j-miller

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()

coolbutuseless avatar Jul 28 '22 10:07 coolbutuseless

Working fine here on Fedora too!

Enchufa2 avatar Jul 28 '22 10:07 Enchufa2

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

Enchufa2 avatar Jul 28 '22 14:07 Enchufa2

@Enchufa2 I haven't looked at music yet.

coolbutuseless avatar Jul 28 '22 21:07 coolbutuseless

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?

ekianjo avatar Aug 04 '22 15:08 ekianjo

@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"

coolbutuseless avatar Aug 04 '22 21:08 coolbutuseless

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

ekianjo avatar Aug 06 '22 14:08 ekianjo