I am trying to use the feature to play a sound when a long running query completes - but I am getting the following error every time I try to even test the sound:
2021-02-26 08:47:11,527 [Thread-16] ERROR net.sourceforge.squirrel_sql.client.session.mainpanel.notificationsound.ConfigureFinishedSoundCtrl - Error testing execution finished sound
java.lang.IllegalStateException: javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.
at net.sourceforge.squirrel_sql.client.session.mainpanel.notificationsound.SoundPlayer.playFile(SoundPlayer.java:85)
at net.sourceforge.squirrel_sql.client.session.mainpanel.notificationsound.SoundPlayer.play(SoundPlayer.java:43)
at net.sourceforge.squirrel_sql.client.session.mainpanel.notificationsound.ConfigureFinishedSoundCtrl.playSound(ConfigureFinishedSoundCtrl.java:143)
at net.sourceforge.squirrel_sql.client.session.mainpanel.notificationsound.ConfigureFinishedSoundCtrl.lambda$onTestSound$5(ConfigureFinishedSoundCtrl.java:130)
at java.base/java.lang.Thread.run(Thread.java:834)
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:503)
at java.desktop/com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:119)
at java.desktop/com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:150)
at net.sourceforge.squirrel_sql.client.session.mainpanel.notificationsound.SoundPlayer.playFile(SoundPlayer.java:76)
... 4 more
I've tried all different formats of sound files - thinking maybe that was the cause - but no success. Any direction would be helpful.
NOTE: I am running Java 8 on RHEL 8 in Gnome 3
Sorry, I can't reproduce your problem on my Linux System (openSUSE Leap 15.2 KDE 5.18.6 Java 1.8.0_192-b12).
In case you've got some Java experience you may experiment with this source
https://sourceforge.net/p/squirrel-sql/git/ci/master/tree/sql12/core/src/net/sourceforge/squirrel_sql/client/session/mainpanel/notificationsound/SoundPlayer.java
together with the sound* files from SQuirreL's lib directory in your class path.