Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
SndPlayDoubleBuffer
Last Revision: | Version 1.0, 2003-03-14 First Version |
Build Requirements: | |
Runtime Requirements: | Carbon |
The primary purpose of this sample code is to show developers how to use SndPlayDoubleBuffer to play AIFF, WAVE, and .au files asynchronously from disk. To this end this sample can be used to show you how to: 1) parse an AIFF, 'snd ' resource, WAVE, or .au header 2) use PBReadAsync() at interrupt time 3) munge AIFF, WAVE, and .au data into a form the Sound Manager can play 4) set up the sound header to play compressed and uncompressed sounds 5) instantly (well, really quickly) pause a sound 6) stop a sound so you can play from some other part of the sound 7) make it sound like you are playing a sound backwards 8) use completion routines 9) have fun with sounds Requires: Code Warrior Pro 5 (to open the project file), a Mac that's fast enough to play sound from disk. Keywords: sound, play, doublebuffer, SndPlayDoubleBuffer, compress
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-03-14