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.
QTimadecompression
Last Revision: | Version 1.0, 2003-01-14 Create a QuickTime atom to decompress IMA compressed WAVE files. |
Build Requirements: | |
Runtime Requirements: | Carbon |
This sample is designed to show you how to create the required QuickTime atom and send it to the IMA decompression codecs so that you can decompress IMA compressed WAVE files using the Sound Manager's SoundConvert routines and the QuickTime IMA codecs. This sample also shows a tecnique of playing a sound that doesn't rely on doing any work, other than setting a flag, at interrupt time. Use this tecnique if you want to be a friendly application, but not if you can't stand to have sound dropouts. The interesting bits are in PlaySound, DoIdle, and SoundCallBackFcn. While this code has a basic knowledge of the structure of a WAVE file, I would not use this code as a sample showing the most correct and complete way to parse a WAVE file.
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14