• 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: AudioConverterConvertBuffer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioConverterConvertBuffer


  • Subject: Re: AudioConverterConvertBuffer
  • From: George Malayil-Philip <email@hidden>
  • Date: Sat, 31 Dec 2005 01:45:41 -0500
  • Thread-topic: AudioConverterConvertBuffer

Title: Re: AudioConverterConvertBuffer
Hi,
    Finally figured why the AudioConvertComplexFillBuffer() wasn’t working. It had to do with how I was handling the inputProc. In the inputProc I was assiging the ioData parameter to another AudioBufferList that I had set up
    ioData = ringBuffer.get();
    This ringbuffer was returning a pointer to a AudioBufferList.
    This apparently doesn’t work. We have to set up the ioData and copy the buffer into this AudioBufferList.
ioData.mBuffers[i].mData = malloc(bufferSize);  --> will I leak memory because of this? I am not sure where and how to delete it if I am responsible  for it...
memcpy(ioData.mBuffers[i].mData, buffer, bufferSize);
    or something to the equivalent of this. Once I had rewritten the proc this way, things worked just fine. Hope this helps anyone else facing similar trouble :)
    Still stumped as to why AudioConverterConvertBuffer() doesn’t work...but, as I have gotten the fillcomplexbuffer() to work I am giving up on this approach.

Regards
George M.P.



Hello George,

I really don't know anything specific about this function that you are calling but I would venture to guess that both buffers must be Altivec (8 byte) aligned to work.

Jeremy

On Dec 29, 2005, at 5:06 AM, George Malayil-Philip wrote:


This convert call however terminates with EXC_BAD_ACCESS in a


FloatToNativeInt32_Altivec(or something similar) function.


This to me indicates I am having some kind of uninitialized memory problem.


But for the life of me I can't figure out what...But the output buffers seem


to be initialized and the dataSize is set correctly, and the input buffers


point to valid data too...any advice on this much appreciated.




 _______________________________________________
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: 
 >Re: AudioConverterConvertBuffer (From: Jeremy Sagan <email@hidden>)

  • Prev by Date: Re: Time Problem with NSThread
  • Next by Date: Re: Callback [was PlayFile]
  • Previous by thread: Re: AudioConverterConvertBuffer
  • Next by thread: Time Problem with NSThread
  • Index(es):
    • Date
    • Thread