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
Im writing an game for my essay, i already added controlP5 library and now i include processing sound library, but when i create an SoundFile passing my sketch as parameter and the audio name file as second parameter the program return this message
"IndexOutOfBoundsException: Index 0 out of bounds for length 0"
What should i do?
Im sure that i installed the library correct and im sure that my wav and mp3 file are inside my data directory inside sketch root.
Don't know what to do next. Teste with wav file in mono and stereo and with mp3 files as well.
The text was updated successfully, but these errors were encountered:
dantearaujo1
changed the title
IndexOutOfBoundsException: Index 0 out of bounds for length 0 - When loading any wav or mp3 file - Linux Ubuntu
IndexOutOfBoundsException: Index 0 out of bounds for length 0 - When loading any wav or mp3 file - Linux Ubuntu inside WSL2
Jun 28, 2022
I tested the same folder using processing IDE inside Windows and not using processing-java inside wsl2 With Ubuntu, and it worked well, but i need to use it inside Linux... it seems like SoundFile(this,path) is not getting the right path inside WSL2.
Thank you for the thorough testing! Could you please post the full code of your sketch (or at least the part where the mp3 file is loaded), and possibly the full stack trace of the error message you got under WSL2? I'd like to figure out if it's a Sound library-specific bug or just a general WSL2 path issue...
Im writing an game for my essay, i already added controlP5 library and now i include processing sound library, but when i create an SoundFile passing my sketch as parameter and the audio name file as second parameter the program return this message
"IndexOutOfBoundsException: Index 0 out of bounds for length 0"
What should i do?
Im sure that i installed the library correct and im sure that my wav and mp3 file are inside my data directory inside sketch root.
Don't know what to do next. Teste with wav file in mono and stereo and with mp3 files as well.
The text was updated successfully, but these errors were encountered: