Closed kargaroc closed 3 years ago
Ah, probably related to the current modern version of the sound editor playback label. May be a regression since lgm16b4, which is good news for you as you can try lgm16b4 to accomplish what you want until a fix is submitted. https://github.com/IsmAvatar/LateralGM/releases/tag/v1.6b4
Alright I've sent the patch 00fcdf627aaf81d6dff222e631962a0fb024d81d for this and you can download v1.8.204 with the fix included. Please let me know if this works, because I wasn't sure if I was also supposed to wrap some of the other methods. https://github.com/IsmAvatar/LateralGM/releases/download/v1.8.204/lateralgm.jar
Some more information about what happened here is that related to #227, this is yet another OpenJDK bug. The documentation for the DataLine and Clip interfaces does not specify that getMicrosecondPosition
or getMicrosecondLength
should throw exceptions. Yet, here they do under the OpenJDK IcedTea Pulse audio implementation, which is why this does not occur under Oracle's own JDK.
https://docs.oracle.com/javase/8/docs/api/javax/sound/sampled/DataLine.html#getMicrosecondPosition--
https://docs.oracle.com/javase/8/docs/api/javax/sound/sampled/Clip.html#getMicrosecondLength--
Although, I do now see that getMicrosecondPosition
is defined in terms of when the line was opened. The length explicitly states that it returns a special value when the clip is not open. So maybe it is partly our fault as well.
I decided to send 55914c4f3a047ba15d5daf27d962fdfada7d4635 to fix the duration too. You can download the new LGM 1.8.221 release jar now. With that I am going to close this issue as you should not have any more exceptions under OpenJDK.
If you do have any more issues, please feel free to open a new ticket.
I'm trying to extract the audio files from an old gm6 file that I have, yet every time I try to, it gives an error. I'm not trying to listen to the file, just extract it.
Note that I don't have PulseAudio installed, and its mentioned in the error log. I assume that it tries to use it, fails because it doesn't exist, and throws an error.
A more graceful way to fail would be to continue as normal, but with sound playback disabled. That way you can at least look at a sound's properties (and presumably save the sound to a file), without PA.
This is the error: