Minim: geting null on loadSnippet method
in
Core Library Questions
•
3 years ago
I'm using AudioSnippet class to play some sounds.
The problem is sometimes the loadSnippet method returns null. I mean it behaves randomly, sometimes it works and sometimes not (with the same file).
I'm only using wav files recorded with the example about recording sound that comes with Processing.
Also maybe important to notice that I use 2 AudioSnippet objects one has always the same sound and is just played the other is used to load different sounds. Only the second one has problems.
Also important to notice that I'm using threads.
I went and digged into the code of Minim and the problem is on line 606 of JSMinim. When I call getInputStream a UnsupportedAudioFileException is triggered.
Can anyone help me please?
The problem is sometimes the loadSnippet method returns null. I mean it behaves randomly, sometimes it works and sometimes not (with the same file).
I'm only using wav files recorded with the example about recording sound that comes with Processing.
Also maybe important to notice that I use 2 AudioSnippet objects one has always the same sound and is just played the other is used to load different sounds. Only the second one has problems.
Also important to notice that I'm using threads.
I went and digged into the code of Minim and the problem is on line 606 of JSMinim. When I call getInputStream a UnsupportedAudioFileException is triggered.
Can anyone help me please?
1