• 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
ExtAudioFile and AudioBufferList allocation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ExtAudioFile and AudioBufferList allocation


  • Subject: ExtAudioFile and AudioBufferList allocation
  • From: Paul Brossier <email@hidden>
  • Date: Wed, 10 Nov 2010 13:41:23 +0100

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: tahome izwah <email@hidden>
  • Prev by Date: Re: Question about 64 bit Audio Units and CoreAudio's datatypes
  • Next by Date: MIDI device Input/Output port update
  • Previous by thread: Re: Question about 64 bit Audio Units and CoreAudio's datatypes
  • Next by thread: Re: ExtAudioFile and AudioBufferList allocation
  • Index(es):
    • Date
    • Thread