Re: ExtAudioFile and AudioBufferList allocation
Re: ExtAudioFile and AudioBufferList allocation
- Subject: Re: ExtAudioFile and AudioBufferList allocation
- From: Paul Brossier <email@hidden>
- Date: Wed, 10 Nov 2010 17:22:43 +0100
On 10/11/2010 15:35, tahome izwah wrote:
Are you releasing that buffer somewhere in your code? If you keep
allocating buffers like that you will overwrite your existing pointer
with your malloc statement the next time through, which would explain
the message.
Yes, the malloc comes along with a free of course. And I took care of
freeing the AudioBufferList after calling ExtAudioFileDispose.
Thanks, Paul
HTH
--th
2010/11/10 Paul Brossier<email@hidden>:
Hi,
When creating the audio buffer list with:
abl.mBuffers[0].mData = (short *)malloc(segmentSize * sizeof(short));
I get a lot of these messages:
test_apple_audio_file(23990,0xa03b7500) malloc: *** error for object
0x101ea04: incorrect checksum for freed object - object was probably
modified after being freed.
*** set a breakpoint in malloc_error_break to debug
When using this instead,
short data[4096];
abl.mBuffers[0].mData = data;
That problem disappear. What is going wrong here?
Thanks, Paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden