My custom VFS will only work once! #742
Replies: 1 comment
-
I believe I have identified the issue; it was a coding error on my part due to an incomplete understanding of the system's functionality. The problem appears to be resolved now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, so I setup my custom VFS in Delphi this way:
Ok, so far so good. I can do this:
ma_sound_init_from_file(@FEngine, 'sound.ogg', MA_SOUND_FLAG_DECODE, nil, nil, @sound)
This will load and decode the sound from a Zip file. Cool. But when I call it again for the next file, the callbacks are never called. What could be wrong?
miniaudio-vfs.mp4
In the debug session, you can see when
ma_sound_init_from_file
is hit, it will jump to the onOpen callback and the rest of them are called to properly decode the file. It will playback also. However, something happens when the onClose is called. At which, they will never be called again. Sigh.Beta Was this translation helpful? Give feedback.
All reactions