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

Re: SoundComponentData to AudioStreamBasicDescription


  • Subject: Re: SoundComponentData to AudioStreamBasicDescription
  • From: Lieven Dekeyser <email@hidden>
  • Date: Wed, 16 Jan 2002 10:49:45 +0100 (CET)

> Why not use the AudioConverter - at least if you're just doing OS X that is
> a better alternative..

I know, but my app needs to be able to handle compressed variable bitrate
formats like mp3s, so I figured it would be best to use the SoundConverter
API. It enables me to handle all audio formats QuickTime can handle with
the same code... That's not possible with the AudioConverter, right? (only
fixed rate LinearPCM, right?) Or did I look over something?

> > does anyone know what mBytesPerPacket, mBytesPerFrame, mChannelsPerFrame
> > and mBitsPerChannel should be in the AudioStreamBasicDescription

Anyway... just ignore my last post: as it worked with the default audio
device, I looked at its AudioStreamBasicDescription and I'll use these
values...

Here's another question: Is it possible to change the buffer size of an
AudioUnit (the buffer you get in it's InputCallback)? Or is it allways a
fixed size? I noticed it was allways 4096 bytes, but that might just be
coincidence...

--Lieven


  • Follow-Ups:
    • Re: SoundComponentData to AudioStreamBasicDescription
      • From: Bill Stewart <email@hidden>
References: 
 >Re: SoundComponentData to AudioStreamBasicDescription (From: Bill Stewart <email@hidden>)

  • Prev by Date: Re: Setting Sample Rates
  • Next by Date: Re: MIDI driver for standard "dumb" interface
  • Previous by thread: Re: SoundComponentData to AudioStreamBasicDescription
  • Next by thread: Re: SoundComponentData to AudioStreamBasicDescription
  • Index(es):
    • Date
    • Thread