« Return to Thread: Get part of a source / buffer

Re: Get part of a source / buffer

by Chris Robinson-5 :: Rate this Message:

Reply to Author | View in Thread

On Monday 25 May 2009 9:53:24 am Niall09 wrote:
> Im trying alBufferData(buffer, AL_FORMAT_STEREO16,data,frames*channels*2,
> freq) but when i run it, i get a error:
>
> malloc: *** mmap(size=3143925760) failed (error code=12)
> *** error: can't allocate region
>
> and when i debug it, by making it output the frames*channels and
> frames*channels*2 to the console, frames*channels is 1571962880 (frames is
> 5292032 and channels is 4355) and frames*channels*2 is -1151041536.

How are you setting the frames/channels/freq/data variables?
_______________________________________________
Openal-devel mailing list
Openal-devel@...
http://opensource.creative.com/mailman/listinfo/openal-devel

 « Return to Thread: Get part of a source / buffer