• 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: tahome izwah <email@hidden>
  • Date: Wed, 10 Nov 2010 15:35:29 +0100

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.

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

  • Follow-Ups:
    • Re: ExtAudioFile and AudioBufferList allocation
      • From: Paul Brossier <email@hidden>
References: 
 >ExtAudioFile and AudioBufferList allocation (From: Paul Brossier <email@hidden>)

  • Prev by Date: Re: Question about 64 bit Audio Units and CoreAudio's datatypes
  • Next by Date: ExtAudioFileWrite, error -40
  • Previous by thread: ExtAudioFile and AudioBufferList allocation
  • Next by thread: Re: ExtAudioFile and AudioBufferList allocation
  • Index(es):
    • Date
    • Thread