Sign in to follow this  

OpenAL alGenBuffers() problem

Recommended Posts

Ive wrapped up the openGL alGenBuffers() function into my own sound class and this is used to create a new buffer everytime i load a new sound. On the first run through it works fine, i can load as many sounds as i like and it fine, then ill delete all the sounds and try to load something else...the first one always fails but then all subsequent ones will work fine, again when i delete them it will happen again. it comes back with the error 40964. here is the function call im using, alGenBuffers(1, &m_Buffer); where m_Buffer is ALuint m_Buffer; anyone know what could be going wrong?? Edit ------------------------------------ Ok after abit of debugging, ive found out that when im calling alDeleteBuffers(1,&M_Buffer), some times its comming out with this error malloc: *** error for object 0xea7dc0: Non-aligned pointer being freed (2) which then seems to lead to the next set of buffers not been loaded correctly. thought this might help anyone in figuring out my problem [Edited by - Infinite_Daremo on July 21, 2009 2:44:24 PM]

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this