« Return to Thread: Trouble with more than 2 buffers at the same time

Re: Trouble with more than 2 buffers at the same time

by Chris Robinson-5 :: Rate this Message:

Reply to Author | View in Thread

On Sunday 28 June 2009 6:03:21 pm Zarnick Maelstorm wrote:
> Well, I am overwriting the buffers, that's the ideia right, allocating an
> array of buffers and creating the wave sine and holding them in this array?
> This buffer is never written over latter in the program (ie: This function
> is called only once) Is there any other way for making this?

The problem is basically this.. when you call alGenBuffers, it will fill the
given array with bufferIDs. eg:

m_vBuffers = { 1, 2, 3, ... };

Then the loop will overwrite those values with the bufferIDs created from
alutCreateBufferWaveform, giving you:

m_vBuffers = { 7, 8, 9, ... };

In this case, buffers 1, 2, 3, ... are lost. They were replaced with new
buffers, and there's no handles to the old ones to delete them.

> Also, I'm using Linux, and I've tested this on both M-Audio Audiophile USB
> interface and a common nForce audio board (the one on board on some mother
> boards), the results are the same.

What lib version are you using? 0.0.8, or one of the 1.x releases?
_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

 « Return to Thread: Trouble with more than 2 buffers at the same time