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

Re: siCompressionParams Question


  • Subject: Re: siCompressionParams Question
  • From: Jeff Moore <email@hidden>
  • Date: Tue, 18 Apr 2006 14:10:56 -0700

First off, you _really_ should be using the AudioConverter API in <AudioToolbox/AudioConverter.h> to do this work. The Sound Manager is deprecated and it is not recommended that folks write new code using it.

That said, my guess is that the reason you are having an issue is that you are setting the convert up incorrectly. If you insist on using the Sound Converter, you might want to check out some of the sample code in the QT SDK, one bit of which can be found here: http:// developer.apple.com/samplecode/soundconverter/soundconverter.html

On Apr 18, 2006, at 7:01 AM, Raman Sharma wrote:

I am trying to decompress audio and compress it back. Everything goes
haywire when I call the following sequence of functions :-

err = SoundConverterGetInfo(sc, siCompressionParams, &destCompParams);
if (err == noErr)
err = SoundConverterSetInfo(sc, siCompressionParams, *destCompParams);


After calling the functions above when I call :-
err = SoundConverterGetInfo(sc, siCompressionFactor, &destCompInfo);

the value of destCompInfo.bytesPerPacket is zero.

Interestingly this happens only in case of the codecs which have
custom data. Because in other cases the function SoundConverterSetInfo
above is not called and everything works fine. Anyone knows what could
be going wrong ?


--

Jeff Moore
Core Audio
Apple


_______________________________________________ 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: siCompressionParams Question
      • From: "Raman Sharma" <email@hidden>
References: 
 >siCompressionParams Question (From: "Raman Sharma" <email@hidden>)

  • Prev by Date: Re: HAL Thread question
  • Next by Date: Re: AU state & MaximumFramesPerSlice
  • Previous by thread: siCompressionParams Question
  • Next by thread: Re: siCompressionParams Question
  • Index(es):
    • Date
    • Thread