GithubHelp home page GithubHelp logo

Comments (8)

AyanamiJoss avatar AyanamiJoss commented on June 15, 2024

Hello! Can you try converting the audio? You are supposed to put it in the address /.GlobalQuakeData/sounds (that folder is created when you run GlobalQuake for the first time), the audio format should be .wav, so you can look for a way to convert .mp3 to .wav effectively :)

from globalquake.

freejool avatar freejool commented on June 15, 2024

but the sounds are in the .wav format already

➜  Downloads l .GlobalQuakeData/sounds
total 2.6M
drwxr-xr-x 1 sxing sxing  296 Apr  5 14:35 .
drwxr-xr-x 1 sxing sxing   32 Apr  5 14:35 ..
-rw-r--r-- 1 sxing sxing 167K Apr  5 14:35 countdown.wav
-rw-r--r-- 1 sxing sxing 192K Apr  5 14:35 eew_warning.wav
-rw-r--r-- 1 sxing sxing 192K Apr  5 14:35 felt_strong.wav
-rw-r--r-- 1 sxing sxing 539K Apr  5 14:35 felt.wav
-rw-r--r-- 1 sxing sxing 195K Apr  5 14:35 found.wav
-rw-r--r-- 1 sxing sxing 175K Apr  5 14:35 intensify.wav
-rw-r--r-- 1 sxing sxing 148K Apr  5 14:35 level_0.wav
-rw-r--r-- 1 sxing sxing 238K Apr  5 14:35 level_1.wav
-rw-r--r-- 1 sxing sxing 189K Apr  5 14:35 level_2.wav
-rw-r--r-- 1 sxing sxing 130K Apr  5 14:35 level_3.wav
-rw-r--r-- 1 sxing sxing 192K Apr  5 14:35 level_4.wav
-rw-r--r-- 1 sxing sxing  361 Apr  5 14:35 README.txt
-rw-r--r-- 1 sxing sxing 192K Apr  5 14:35 update.wav
➜  Downloads

from globalquake.

freejool avatar freejool commented on June 15, 2024

Also, I can play the .wav file manually with vlc.

from globalquake.

YacineBoussoufa avatar YacineBoussoufa commented on June 15, 2024

Try reconverting them again with online tools, it sees that the files use 48000Hz but your Java is unable to read them

from globalquake.

freejool avatar freejool commented on June 15, 2024

Sorry I don't get you. How do I convert them again? They are originally wav files. I ran the jar with java -jar GlobalQuake-v0.11.0_pre-1.jar.

I'm trying to reduce the sample rate.

from globalquake.

freejool avatar freejool commented on June 15, 2024

I'm trying to reduce the sample rate.

not working after converting to 44100Hz

➜  Downloads java -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=23333 -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=23333 -jar GlobalQuake-v0.11.0_pre-1.jar
[16:07:50] WARN: globalquake.core.exception.FatalIOException: Failed to load sound: update.wav
        at globalquake.sounds.GQSound.load(GQSound.java:103)
        at globalquake.sounds.Sounds.loadSounds(Sounds.java:90)
        at globalquake.sounds.Sounds.load(Sounds.java:119)
        at globalquake.ui.client.MainFrame.initAll(MainFrame.java:91)
        at globalquake.ui.client.MainFrame.lambda$new$0(MainFrame.java:64)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.
        at java.desktop/com.sun.media.sound.DirectAudioDevice$DirectDL.implOpen(DirectAudioDevice.java:484)
        at java.desktop/com.sun.media.sound.DirectAudioDevice$DirectClip.implOpen(DirectAudioDevice.java:1241)
        at java.desktop/com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:115)
        at java.desktop/com.sun.media.sound.DirectAudioDevice$DirectClip.open(DirectAudioDevice.java:1038)
        at java.desktop/com.sun.media.sound.DirectAudioDevice$DirectClip.open(DirectAudioDevice.java:1134)
        at globalquake.sounds.GQSound.load(GQSound.java:100)
        ... 9 more

from globalquake.

YacineBoussoufa avatar YacineBoussoufa commented on June 15, 2024

That's strange

from globalquake.

freejool avatar freejool commented on June 15, 2024

Please ask if you need any information.

from globalquake.

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.