rflachlan / Luscinia

http://rflachlan.github.io/Luscinia
32 stars 7 forks source link

Soundfile loaded, after that nothing happens, no sonogram or something like it #10

Open JoopN opened 2 years ago

JoopN commented 2 years ago

I have a bug report. WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by lusc.net.github.Luscinia (file:/home/pi/Apps/Luscinia/Luscinia.jar) to field sun.awt.X11GraphicsDevice.scale WARNING: Please consider reporting this to the maintainers of lusc.net.github.Luscinia WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release javax.sound.sampled.UnsupportedAudioFileException: File of unsupported format

from there a waterfall of things which go wrong. The first, I don't know. This is my system/Java version; openjdk version "11.0.12" 2021-07-20 OpenJDK Runtime Environment (build 11.0.12+7-post-Raspbian-2deb10u1) OpenJDK Server VM (build 11.0.12+7-post-Raspbian-2deb10u1, mixed mode)

The sound file I wanted to use is an mp3 which plays nicely in other programs which do something with sound.

Options or suggestions?

rflachlan commented 2 years ago

Dear JoopN, (1) The initial warnings are not causing problems at the moment - I will remove them at some point. (2) The problem is coming from using mp3 files. I am using the Java Sound API to process sound files. Unfortunately, it's not that great, and doesn't cope with mp3. I've tried a couple of third party mp3 api's, but they've been very buggy. If you have a use for Luscinia that really needs mp3, then drop me an email and I can see if I can help out. Best, Rob