Git Product home page Git Product logo

Comments (5)

00-Evan avatar 00-Evan commented on May 20, 2024

You're misinterpreting that comment, which was about the game responding to when Windows switches audio devices (e.g. when headphones are unplugged), not about adding a selector in the game for choosing an audio device. I'm afraid I don't have any plans for such functionality.

Shattered's game library is responsible for that layer of audio output, I'm unfortunately not familiar with audio on linux, but there must be some reason why Shattered thinks one of the devices is your default one when it is in fact the other.

from shattered-pixel-dungeon.

moll avatar moll commented on May 20, 2024

Got it. Thanks for the quick response!

Shattered's game library is responsible for that layer of audio output, I'm unfortunately not familiar with audio on linux, but there must be some reason why Shattered thinks one of the devices is your default one when it is in fact the other.

Fair enough. I can take a look sometime when I get a chance. By "game library" you mean some game engine lib? I noticed references to https://libgdx.com, e.g. in https://github.com/00-Evan/shattered-pixel-dungeon/blob/425c90135d7d666dd1f4715f165dca91a7fb449e/SPD-classes/src/main/java/com/watabou/noosa/audio/Sample.java. Thanks!

from shattered-pixel-dungeon.

00-Evan avatar 00-Evan commented on May 20, 2024

Thanks for understanding, and I hope you're able to figure your issue out.

Shattered uses libGDX, which in turn uses LWJGL3/OpenAL for audio.

from shattered-pixel-dungeon.

moll avatar moll commented on May 20, 2024

Thanks for the hint! For the record, I eventually tracked this down to OpenAL, which for some reason chose the wrong default device. Running openal-info confirmed this. This led me to re-discover that my Arch Linux installation was running both PulseAudio and the newer PipeWire. How those both played with each other, I do not know. I think they've been side by side for a year+ now and while everything else didn't mind, I assume OpenAL was the first to default to PipeWire, which for whatever reason defaulted to the other audio device I had. I followed the instructions on https://wiki.archlinux.org/title/PipeWire to remove PulseAudio entirely. Then picked my primary sound device from the GNOME sound picker and problem solved. SPD's sounds now come out from the correct speaker.

from shattered-pixel-dungeon.

00-Evan avatar 00-Evan commented on May 20, 2024

Glad to hear that you got it working!

from shattered-pixel-dungeon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.