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

Re: SoundDescription


  • Subject: Re: SoundDescription
  • From: Brad Ford <email@hidden>
  • Date: Wed, 15 Nov 2006 10:22:03 -0800


On Nov 15, 2006, at 6:13 AM, Sandeep Chandna wrote:

Hi,

In my audio-conversion application, I was using SoundDescriptionV1 and AddMediaSample functions to encode output. All was going well until I added sampleRates 88.2khz, 96khz, and 192khz. It looks like they fall under SoundDescriptionV2 category.

This is a QuickTime question, so it should probably be asked on the quicktime api list.



Now I am not sure what all I need to change here. Does AddMediaSample take SoundDescriptionV2 directly or do I have to use AddMediaSample2 there?

AddMediaSample works fine with SoundDescriptionV2's.


As far as I found in previous posts and docs available, I need to do something like this. Is this flow correct?


create output/inputASBDs
create Layout,MagicCookie
call SoundDescriptionCreate with above three and get sdh say

Yes. Make sure you use QTSoundDescriptionCreate() to make your sound description. Don't create it by hand. It's really hard to get all the fields right when filling in sdh's by hand.


-Brad Ford
QuickTime Engineering


while(end) { //AudioBufferList etc call SCAudioFillBuffer to get encoded data call AddMediaSample and pass the sdh created above }

Do I need to take care of any other things here ?

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: 
 >SoundDescription (From: "Sandeep Chandna" <email@hidden>)

  • Prev by Date: Execption using JDIC Misc (v0.1.3) Volume on MacOSX
  • Next by Date: Re: Execption using JDIC Misc (v0.1.3) Volume on MacOSX
  • Previous by thread: Re: SoundDescription
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread