I've noticed the "sudden" use of something like "ConvertOffset()" example in QB64 Wiki in post #10, might have to use it in the first program posted on this thread? I mean, checking the "dot-SIZE" field of a _MEM variable is the only way provided in QB64(PE) to see if the _MEMSOUND call was successful. Therefore it might not be reliable to indicate what is the extent of the loaded sound buffer.
What I mean is, _MEM variable "dot-SIZE" set to zero means either memory was previously allocated and then freed, or _MEMSOUND failed after being called. Some lossy-format files don't like being decoded as part of vain attempts to "protect" them...
Also on post #10 for 64-bit must change that function so it retrieves, and the function returns an _INTEGER64. (Double ampersand sigil.)
EDIT: just noticed the new thread under "Announcements" forum. :/
What I mean is, _MEM variable "dot-SIZE" set to zero means either memory was previously allocated and then freed, or _MEMSOUND failed after being called. Some lossy-format files don't like being decoded as part of vain attempts to "protect" them...
Also on post #10 for 64-bit must change that function so it retrieves, and the function returns an _INTEGER64. (Double ampersand sigil.)
EDIT: just noticed the new thread under "Announcements" forum. :/