Replies: 3 comments 1 reply
-
BTW, when printing the errno given by drwav_init_file it says: socket operation on non-socket Even when I see nothing about sockets. OTOH, fopen on the same filepath seems to work. |
Beta Was this translation helpful? Give feedback.
-
dr_wav uses |
Beta Was this translation helpful? Give feedback.
-
Yes, and upon a closer inspection, I am not sure if this sort of library is even relevant to Android, because some sources suggest reading data in Java, not NDK. Though, libsndfile is for Android: https://github.com/libsndfile/libsndfile/blob/master/Building-for-Android.md |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been trying to use this library on Android NDK, but I'm struggling with drwav_init_file failing even when I provide it a valid path.
Some example code for this would be useful.
BTW, my code works perfectly on my desktop (just change the path). But when I change the path to one got through JNI (/storage/emulated/0/Music/test.wav), then drwav_init_file fails as if the file path is invalid.
Beta Was this translation helpful? Give feedback.
All reactions