One of the 1.x releases, so I shouldn't call alGenBuffers, and call only alutCreateBufferWaveform?
Thanks.
Zarnick
http://www.geekvault.org
On Sun, Jun 28, 2009 at 10:27 PM, Chris Robinson
<chris.kcat@...> wrote:
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