Quote Originally Posted by Eduardo- View Post
Hello The Trick.
I want to report that I tested it and I get error 7 "Out of memory" at the line:

Code:
ReDim Preserve buffer(outSize - 1)
of the function DSCreateSoundBufferFromMemory.

(I needed to remove some error handling to get to the error line)

I tested it with a Mp3 file that its size is 36 MB and has 26 minutes of audio.
It is trying to redim the byte array buffer to 250435583.

I have only 1 GB of physical RAM (on XP SP3) but that was never a problem to reproduce audio.

PS: sometimes I'm glad that I'm working in a such old machine, I'm permanently testing all for the worst case!
Hi Eduardo-, I met the same problem as you. Have you solved your problem using circular buffer?