• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ExtAudioFile and AudioBufferList allocation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >ExtAudioFile and AudioBufferList allocation (From: Paul Brossier <email@hidden>)
 >Re: ExtAudioFile and AudioBufferList allocation (From: tahome izwah <email@hidden>)

  • Prev by Date: ExtAudioFileWrite, error -40
  • Next by Date: Re: Bouncing a graph to a file offline.
  • Previous by thread: Re: ExtAudioFile and AudioBufferList allocation
  • Next by thread: MIDI device Input/Output port update
  • Index(es):
    • Date
    • Thread