no sounds, Linux only

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

no sounds, Linux only

anonymissimus
When I try to run TripleA on Linux the sounds never work. I thought it's a system problerm as I had problems with sound on Linux in the past, but it's happening with different machines and OS versions and TripleA versions. Other applications can play sounds fine. I've also used the same TripleA download (OS independent version) on the windows dual boot on one of the machines with sounds playing.

anonymissimus@ubuntu:~$ java -version
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14)
OpenJDK Server VM (build 25.91-b14, mixed mode)

triplea.engine.version.bin:1.8.0.9
javax.sound.sampled.LineUnavailableException
java.lang.IllegalStateException: line already closed at org.classpath.icedtea.pulseaudio.PulseAudioMixer.openImpl(PulseAudioMixer.java:714)
        at org.classpath.icedtea.pulseaudio.PulseAudioMixer.openLocal(PulseAudioMixer.java:588)
        at org.classpath.icedtea.pulseaudio.PulseAudioMixer.openLocal(PulseAudioMixer.java:584)
        at org.classpath.icedtea.pulseaudio.PulseAudioMixer.open(PulseAudioMixer.java:579)
        at org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:94)
        at org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:283)
        at org.classpath.icedtea.pulseaudio.PulseAudioClip.open(PulseAudioClip.java:402)
        at org.classpath.icedtea.pulseaudio.PulseAudioClip.open(PulseAudioClip.java:453)
        at games.strategy.sound.ClipPlayer.testClipSuccessful(ClipPlayer.java:560)
        at games.strategy.sound.ClipPlayer.createAndAddClips(ClipPlayer.java:514)
        at games.strategy.sound.ClipPlayer.parseClipPaths(ClipPlayer.java:393)
        at games.strategy.sound.ClipPlayer.loadClipPath(ClipPlayer.java:345)
        at games.strategy.sound.ClipPlayer.loadClip(ClipPlayer.java:334)
        at games.strategy.sound.ClipPlayer.preLoadClip(ClipPlayer.java:315)
        at games.strategy.sound.SoundPath.preLoadSounds(SoundPath.java:137)
        at games.strategy.sound.ClipPlayer.getInstance(ClipPlayer.java:136)
        at games.strategy.triplea.ui.UIContext$1.run(UIContext.java:95)
        at java.lang.Thread.run(Thread.java:745)

        at org.classpath.icedtea.pulseaudio.PulseAudioClip.close(PulseAudioClip.java:241)
        at games.strategy.sound.ClipPlayer.testClipSuccessful(ClipPlayer.java:576)
        at games.strategy.sound.ClipPlayer.createAndAddClips(ClipPlayer.java:514)
        at games.strategy.sound.ClipPlayer.parseClipPaths(ClipPlayer.java:393)
        at games.strategy.sound.ClipPlayer.loadClipPath(ClipPlayer.java:345)
        at games.strategy.sound.ClipPlayer.loadClip(ClipPlayer.java:334)
        at games.strategy.sound.ClipPlayer.preLoadClip(ClipPlayer.java:315)
        at games.strategy.sound.SoundPath.preLoadSounds(SoundPath.java:137)
        at games.strategy.sound.ClipPlayer.getInstance(ClipPlayer.java:136)
        at games.strategy.triplea.ui.UIContext$1.run(UIContext.java:95)
        at java.lang.Thread.run(Thread.java:745)
javax.sound.sampled.LineUnavailableException
        at org.classpath.icedtea.pulseaudio.PulseAudioMixer.openImpl(PulseAudioMixer.java:714)
        at org.classpath.icedtea.pulseaudio.PulseAudioMixer.openLocal(PulseAudioMixer.java:588)
        at org.classpath.icedtea.pulseaudio.PulseAudioMixer.openLocal(PulseAudioMixer.java:584)
        at org.classpath.icedtea.pulseaudio.PulseAudioMixer.open(PulseAudioMixer.java:579)
        at org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:94)
        at org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:283)
        at org.classpath.icedtea.pulseaudio.PulseAudioClip.open(PulseAudioClip.java:402)
        at org.classpath.icedtea.pulseaudio.PulseAudioClip.open(PulseAudioClip.java:453)java.lang.IllegalStateException: line already closed
        at games.strategy.sound.ClipPlayer.testClipSuccessful(ClipPlayer.java:560)
        at games.strategy.sound.ClipPlayer.createAndAddClips(ClipPlayer.java:514)
        at games.strategy.sound.ClipPlayer.parseClipPaths(ClipPlayer.java:393)
        at games.strategy.sound.ClipPlayer.loadClipPath(ClipPlayer.java:345)
        at games.strategy.sound.ClipPlayer.loadClip(ClipPlayer.java:332)
        at games.strategy.sound.ClipPlayer.preLoadClip(ClipPlayer.java:317)
        at games.strategy.sound.SoundPath.preLoadSounds(SoundPath.java:137)
        at games.strategy.sound.ClipPlayer.getInstance(ClipPlayer.java:136)
        at games.strategy.triplea.ui.UIContext$1.run(UIContext.java:95)
        at java.lang.Thread.run(Thread.java:745)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: no sounds, Linux only

aaalafayette
Administrator
1.9 is due out soon, the sound player was updated. It has  worked on ubuntu 15 and 16. With some luck this problem would be solved.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: no sounds, Linux only

anonymissimus
In reply to this post by anonymissimus
Well no, 1.9 is also affected. There's no exception/stack trace with 1.9 but it still doesn't play any sounds.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: no sounds, Linux only

anonymissimus
In reply to this post by anonymissimus
My suspicion that this is happening because of usage of openjre prooves true. I've downloaded Orcale's jre ("Linux" package from https://www.java.com/de/download/linux_manual.jsp) and dang, the siren sound at start etc are there.
So there you have a workaround, and a clue what you have to look for.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: no sounds, Linux only

aaalafayette
Administrator
OpenJRE perhaps does not support mp3 audio files

To at least do something.. adding a note to the download page about this: https://github.com/triplea-game/triplea-game.github.io/pull/115

dom
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: no sounds, Linux only

dom
In reply to this post by anonymissimus
Not sure what I can do to help, but sound is working for 1.9.0.0.x on Debian Stretch/Testing so it doesn't seem to me like a problem with the game.
I have
default-jre 2.1.8-57
default-jre-headless 2.1.8-57
openjdk-8-jre 8u102-b14.1-2
openjdk-8-jre-headless 8u102-b14.1-2
and
libgeronimo-osgi-support-java 1.1.1
default-jdk 2.1.8-57
default-jdk-headless 2.1.8-57
icedtea-8-plugin1.6.2-3
 and a number of testing and debugging java libraries along with apache, unicode and JSON files that don't appear relevant to sound.

Which Linus OS('s) are you using?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: no sounds, Linux only

anonymissimus
I'm experiencing the problem with Lubuntu 14.04.x and 16.04.x and 2 machines (hardware).
The package versions are almost the same as yours.
dom
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: no sounds, Linux only

dom
Ubuntu is Debian based so if you enjoy playing with that sort of thing, you can set your Synaptic package manager to have

URI: http://ftp.uk.debian.org/debian/
Distribution: stretch
Section(s): main

in the settings>repository  tab, install any updated/latest java files you need and then go back into the settings and untick  the repository you added (or you may get lots of updates you don't want). May be worth a look through the games too, there are some good ones in there and all (nearly anyway) work in deb testing as it is getting close to freeze and release.

Obviously this comes with the usual warnings about breaking things, at your own risk, etc.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: no sounds, Linux only

aaalafayette
Administrator
I wonder how much of this has to do with mp3 codecs, and/or java JREs that may or may not include them.

A point about releases, 1.9 is about effectively out. The 'freeze' and release model is being retired, it is no longer necessary. 'Point' releases that will be backwards compatible are then likely going to be more frequent.
dom
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: no sounds, Linux only

dom
If you are ready to go you should get in touch with the Debian package maintainers and let them know as their schedule for Debian testing becoming the new Debian stable (and LTS)  is;

[2016-Nov-05] Transition freeze
[2016-Dec-05] Mandatory 10-day migrations
[2017-Jan-05] Soft freeze (no new packages, no re-entry, 10-day migrations)
[2017-Feb-05] Full freeze

after that it is two years before the next release although you may get into a point release at some time,and getting into the next release of Debian will get you into most of the derived OS's next year too (such as Ubuntu's).

You only had two bugs filed (1) against your last 1.8 series release where the maintainers might be found (2), I don't know about the first bug and although you haven't addressed the second (files stored in /home/user/.triplea not /home/user/triplea as they require files for programs to be stored in hidden folders and putting the . before the name hides it from the system user), it is of relatively minor importance and shouldn't over-concern you. Popcon (a voluntary populaity contest for packages) of which only a minor portion of users take part suggests you have around 160 installs a week through Debian.

(1) https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=triplea;dist=unstable
(2) https://packages.debian.org/stretch/triplea
Loading...