• 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: HAL Devices and Streams (with QuickTime)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HAL Devices and Streams (with QuickTime)


  • Subject: Re: HAL Devices and Streams (with QuickTime)
  • From: Lieven Dekeyser <email@hidden>
  • Date: Tue, 15 Jan 2002 14:31:29 +0100 (CET)

> I just need to figure out
> what I'm going to do with all my QuickTime playback code on OS X ASAP!

If it's just for audio playback, you can use QuickTime's
SoundConverterFillBuffer api to convert the samples to the Float32 format
CoreAudio uses. I've put some sample code on how to do this on:

http://studwww.rug.ac.be/~lbdkeyse/source/CoreAudio/SoundConverterExample.tgz

The code just converts the samples of any audio format QuickTime
understands to stereo 44khz Float32 data, you'll have to copy the
converted data to your device's buffers yourself. Don't forget to set the
buffersize of your device to be the same as the conversion buffer!

--Lieven


References: 
 >Re: HAL Devices and Streams (with QuickTime) (From: <email@hidden>)

  • Prev by Date: FireWire Audio and MIDI drivers
  • Next by Date: Speech Manager
  • Previous by thread: Re: HAL Devices and Streams (with QuickTime)
  • Next by thread: Re: HAL Devices and Streams (with QuickTime)
  • Index(es):
    • Date
    • Thread