« Return to Thread: Buffer size problem

Re: Buffer size problem

by Zarnick Maelstorm :: Rate this Message:

Reply to Author | View in Thread

Are you sure you're not leaking any kind of memory in the process? Could you post some code?

Zarnick
http://www.geekvault.org


On Fri, Jul 3, 2009 at 3:05 PM, Jimmy Gervais <jimbo8086@...> wrote:
Hi,

I created a simple program to experiment with OpenAl before getting into more serious work. The program generates white noise. The problem is that it crashes when the buffer size is higher than about 280'000, sometimes less. I tested in MONO16 and STEREO16, it makes no difference. The size variable is of ALsizei type, and everything else also follows AL "standard". I looked on the Internet to see what was the max size, and read 1GB. It hangs at alBufferData(), but sometimes it gets over it without making any sound. I really don't get it.

I'm on a HP laptop working with 3GB of RAM, AMD Turion X2 64 2GHz, vista 32 bits.

Any hint would be much appreciated. Thank you!

Jimmy


_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal



_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

 « Return to Thread: Buffer size problem