Version: 1.1

Posted: 2006-01-03

Build Requirements: Mac OS X 10.4, or Mac OS X 10.3.9 and QuickTime 7.0, Xcode 2.2

Runtime Requirements: Mac OS X 10.4, or Mac OS X 10.3.9 and QuickTime 7.0

View Source Code:

Download Sample (“SimpleAudioExtraction.zip”, 90.5K)
Download Sample (“SimpleAudioExtraction.dmg”, 145.2K)



Description

Demonstrates how to use the QuickTime 7.0 Audio Extraction APIs: MovieAudioExtractionBegin, MovieAudioExtractionEnd and MovieAudioExtractionFillBuffer and others to extract and mix audio from a QuickTime movie. The extracted movie audio is then scheduled for playback using the AUScheduledSoundPlayer and finally rendered using a Core Audio AUGraph where an audio effect is applied.

(NOTE: The Movie Audio Extraction APIs in QuickTime 7 are now considered the preferred APIs to use for extracting audio from a Movie sound track. Previous techniques involved using the GetMediaSample API to get media sample data from the sound track, as demonstrated by the "SoundPlayer" sample code (and others) on the ADC website. While these techniques still work, they are no longer the preferred method. Use the Movie Audio Extraction APIs instead.)

Document Revision History

Date Notes
2006-01-03Updated to use AUScheduledSoundPlayer
2005-07-15Demonstrates the QuickTime 7.0 Movie Audio Extraction APIs

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.