Generic MA_ERROR when initializing sound with ma_sound_init_ex #1020
-
|
Hello, I want to give a bit more context on my problem. I am initialising the sound with a "path" pointing to the resource which I have registered as encoded data (raw encoded file data). The problem however is that the method returns MA_ERROR. This confuses me, since I have no idea what this error might mean or where it comes from, I enabled the build option MA_DEBUG_OUTPUT but it shows nothing useful in the logs. The interesting thing is that decoding info and data from the file is no problem for miniaudio (registering it also returns no errors). If I use the data that miniaudio decodes from the file via ma_decoder and register it with ma_register_decoded_data, it works fine with zero issues and even plays back. But I would prefer to use registered encoded data for performance, file space saving and simplicity reasons. I have looked through the code but had trouble finding the place MA_ERROR gets returned, so I have come here for help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
This is embarassing but I found the issue, I was passing the wrong size to ma_register_encoded_data and with the correct size it now works perfectly 🫤 |
Beta Was this translation helpful? Give feedback.
This is embarassing but I found the issue, I was passing the wrong size to ma_register_encoded_data and with the correct size it now works perfectly 🫤
Good that it's my fault and not the library haha