You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for providing the sound file, it's very helpful! I think JSyn fails to decode the file because it is in unsigned (8 bit) PCM encoding. To fix this we will probably have to switch to a different library/code for loading WAV samples.
Despite what it says there, setting the Javasound preferred flag does not add support for 8bit unsigned WAV files. I wonder if we could somehow still easily add support by fiddling with JavaSounds's AudioInputStream class directly.
Activity
kevinstadler commentedon Nov 14, 2018
Thanks for providing the sound file, it's very helpful! I think JSyn fails to decode the file because it is in unsigned (8 bit) PCM encoding. To fix this we will probably have to switch to a different library/code for loading WAV samples.
[-]Sound library error: unable to decode sound file[/-][+]Unable to load/decode 8 bit unsigned WAV file[/+]crcdng commentedon Nov 14, 2018
Good to hear. The file is created with http://github.grumdrig.com/jsfxr/, one of the bfxr/sfxr family of tools to generate sound effects for games.
kevinstadler commentedon May 15, 2019
Just to confirm, the lack of support for compressed WAV formats is documented here: http://www.softsynth.com/jsyn/docs/javadocs/com/jsyn/util/SampleLoader.html
Despite what it says there, setting the Javasound preferred flag does not add support for 8bit unsigned WAV files. I wonder if we could somehow still easily add support by fiddling with JavaSounds's
AudioInputStreamclass directly.Implement mp3/ogg/.. SoundFile decoding using JavaSound
Implement mp3/ogg/.. SoundFile decoding using JavaSound