• 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
SCAudioFillBuffer vs AudioConverterFillComplexBuffer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SCAudioFillBuffer vs AudioConverterFillComplexBuffer


  • Subject: SCAudioFillBuffer vs AudioConverterFillComplexBuffer
  • From: Jim Heintz <email@hidden>
  • Date: Tue, 7 Apr 2009 13:13:52 -0700

Hi All,

I am working on porting a project to Quicktime for Windows, and therefore must change from using AudioConverter to the StandardCompressionSubTypeAudio component. My code works great with AudioConverter, however I am having trouble decoding AAC using SCAudioFillBuffer. I am able to create the component and set its kQTSCAudioPropertyID_InputBasicStream and kQTSCAudioPropertyID_BasicStream parameters without error, however whenever I call SCAudioFillBuffer, it returns -50 and never calls the DataProc handler function. I setup the AudioBufferList in exactly the same manner as I do when I call AudioConverterFillComplexBuffer, but for some reason it is complaining of a bad parameter.

Here is the code that calls SCAudioFillBuffer

	UInt32 outPackets = AAC_PACKET_FLOATS * 64;

	decompBufList->mNumberBuffers = 2;
	decompBufList->mBuffers[0].mNumberChannels = 1;
	decompBufList->mBuffers[0].mDataByteSize = CONVERTER_BUF_SIZE;
	decompBufList->mBuffers[0].mData = decompressBuffer;
	decompBufList->mBuffers[1].mNumberChannels = 1;
	decompBufList->mBuffers[1].mDataByteSize = CONVERTER_BUF_SIZE;
	decompBufList->mBuffers[1].mData = decompressBuffer2;

#if MAC_VERSION
int err = AudioConverterFillComplexBuffer(decompressor, decoderDataProc, this, &outPackets, decompBufList, NULL);
#else
int err = SCAudioFillBuffer( decompressor, decoderDataProc, this, &outPackets, decompBufList, NULL);
#endif


This code works properly on Mac, however on Windows SCAudioFillBuffer returns -50 and never calls decoderDataProc.

I have tried a lot of different things... Any suggestions?

Best regards,

Jim Heintz
_______________________________________________
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: SCAudioFillBuffer vs AudioConverterFillComplexBuffer
      • From: Brad Ford <email@hidden>
  • Prev by Date: Re: How to avoid overhead of 30% CPU usage
  • Next by Date: Re: SCAudioFillBuffer vs AudioConverterFillComplexBuffer
  • Previous by thread: Re: How to avoid overhead of 30% CPU usage
  • Next by thread: Re: SCAudioFillBuffer vs AudioConverterFillComplexBuffer
  • Index(es):
    • Date
    • Thread