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

Re: upsampling and CompressionInfo


  • Subject: Re: upsampling and CompressionInfo
  • From: Brad Ford <email@hidden>
  • Date: Sat, 23 Sep 2006 20:39:37 -0700


On Sep 22, 2006, at 10:36 PM, Sandeep Chandna wrote:

Hi!

- Does QT allow upsampling of SampleSize (PCM 16bit input to 32 bit/ 64 bit output) and Mono to Stereo/5.1 etc ? or just the downsampling ?

These questions belong on the QuickTime api mailing list. (cc'ing the appropriate list).


I assume you're talking about the SCAudio compression API's. The answer is yes. You can up convert to wider sample sizes. You can also upsample the sample rate.

SCAudio does not currently allow up converting channel layouts (since this would just result in empty channels), except the case of mono -> stereo.

You may down convert to channel layouts with fewer numbers of channels (e.g. 5.1 -> quad), or the same number of channels (e.g. 5.1 L,R,C,LFE,Ls,Rs -> C,L,R,Ls,Rs,LFE). It also allows you to get your n input channels out as discrete (no mix) channels, or you can pass the input channel layout through to the output (say, if you're just performing a sample rate conversion on an odd channel layout, such as L,R,C, it will let you get L,R,C out as passthru).

- Like in SoundMgr's SoundConverterGetInfo function which returned the handle to a CompressionInfo structure, can we get this Handle in the new API as well? or do we have to just use ASBD to do the needful .

Look through the set of supported properties. You can use ASBD, AudioChannelLayout, MagicCookie, CodecSpecificSettings (codec properties in a parseable CFArray), or you can get a blob of settings using the SCGetSettingsAsAtomContainer call.


-Brad Ford
QuickTime Engineering




Thanks
Sandeep
 _______________________________________________
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

_______________________________________________ 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: 
 >upsampling and CompressionInfo (From: "Sandeep Chandna" <email@hidden>)

  • Prev by Date: Re: CoreAudio on macintel no Sound...
  • Next by Date: Re: CoreAudio on macintel no Sound...
  • Previous by thread: upsampling and CompressionInfo
  • Next by thread: Change Volume on Default Output Device
  • Index(es):
    • Date
    • Thread