MovingBlocks / DestinationSol

Official continuation of Destination Sol, the great fun little arcade space shooter from http://sourceforge.net/projects/destinationsol/ Modules live at https://github.com/DestinationSol/
Apache License 2.0
326 stars 123 forks source link

No sound at all #694

Closed jozefcifre closed 11 months ago

jozefcifre commented 11 months ago

What you were trying to do

I was trying to run DS develop.

What actually happened

No music, no teleporting sound effects, no firing sound, no sound at all.

How to reproduce

No response

Game version

develop

Log details

Configuration on demand.txt

Operating System

Linux

Additional Info

No response

BenjaminAmos commented 11 months ago

Is this NixOS again?

AL lib: (EE) ALCplaybackOSS_open: Could not open /dev/dsp: No such file or directory

I suspect that this line might have something to do with it. libGDX uses LWJGL 3 for rendering and audio, which in turn wraps OpenAL. Something is going wrong with OpenAL here.

BenjaminAmos commented 11 months ago

Could you set the environment variable ALSOFT_LOGLEVEL=3 and then attach the logs from running the game again here? Running export ALSOFT_LOGLEVEL=3 before ./gradlew game should work.

Assuming it is NixOS, this is completely untested but maybe also give this a try (I added pulseaudio - same instructions as https://github.com/MovingBlocks/DestinationSol/issues/693#issuecomment-1784090234):

let
  nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.05";
  pkgs = import nixpkgs { config = {}; overlays = []; };
in

pkgs.mkShell {
  packages = with pkgs; [
    git
    temurin-bin-11
    libglvnd
    libpulseaudio
  ];

  LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib:${pkgs.libglvnd}/lib:${pkgs.libpulseaudio}/lib";
}
jozefcifre commented 11 months ago

Yeah, it's NixOS unstable.

alsoft-logs.txt

jozefcifre commented 11 months ago

Assuming it is NixOS, this is completely untested but maybe also give this a try (I added pulseaudio - same instructions as #693 (comment)):

let
  nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.05";
  pkgs = import nixpkgs { config = {}; overlays = []; };
in

pkgs.mkShell {
  packages = with pkgs; [
    git
    temurin-bin-11
    libglvnd
    libpulseaudio
  ];

  LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib:${pkgs.libglvnd}/lib:${pkgs.libpulseaudio}/lib";
}

It worked.

jozefcifre commented 11 months ago

Hmm, is there any documentation on the game engine?

Cervator commented 11 months ago

@jozefcifre sort of - we have a fair amount of stuff in the wiki: https://github.com/MovingBlocks/DestinationSol/wiki

I don't think it is going to cover any OS-level quirks or troubleshooting though - just fairly general Java dev and related :-)

Alternatively if you mean LibGDX or LWJGL then yeah they have huge websites of their own to cover probably about anything.

jozefcifre commented 11 months ago

@jozefcifre sort of - we have a fair amount of stuff in the wiki: https://github.com/MovingBlocks/DestinationSol/wiki

I don't think it is going to cover any OS-level quirks or troubleshooting though - just fairly general Java dev and related :-)

Alternatively if you mean LibGDX or LWJGL then yeah they have huge websites of their own to cover probably about anything.

That's what I meant, thank you.