|
-
Sep 10th, 2017, 09:28 PM
#3
Re: [VB6] DirectSound.
 Originally Posted by Eduardo-
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?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|