[Openal] Buffer size problem

Jimmy Gervais jimbo8086 at gmail.com
Fri Jul 3 12:08:45 PDT 2009


>Instead of using dynamic allocation, have you tried fixed buffer? Also, you
can create white noise with the >alutCreateBufferWaveform().

>I'm a new user of OpenAL myself, so I'm sorry I can't provide you with more
help.

Well, the size is predefined so I don't see what difference it would make.
Do you?

Thanks I'll see about *alutCreateBufferWaveform()*. Right now I just have *
al*, *alc *and *alext *(they came with SFML libraries). I'm going to look
for *alut*.

>Actually, it makes difference the way the computer allocates the memory,
but this is out of scope here. Try with defines, >something like this
>#define MAX_SIZE 250000
>int main(int argc, char *argv[])
>{
> ALuint buffer[MAX_SIZE];
>}
>This way you don't allocate the memory using new, and on the heap, which
may lead to memory leak.



Thanks, it went up to 550000 with #define, better but doesn't really solve
the prob ... ;)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://opensource.creative.com/pipermail/openal/attachments/20090703/2ca0a684/attachment.html


More information about the Openal mailing list