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.
MeterTest
Last Revision: | Version 1.0, 2003-03-14 Sampling of sound input using SPBGetDeviceInfo(). Metering is then turned on and sampling is repeated. |
Build Requirements: | |
Runtime Requirements: | Carbon Sound Manager 3.2.1 or later |
This snippet demonstrates record metering through the use of SPBGetDeviceInfo() and SPBSetDeviceInfo() using the siLevelMeterOnOff selector. The code calls SPBSetDeviceInfo() to initially set metering to off, then does a quick sampling of sound input using SPBGetDeviceInfo(). Metering is then turned on and sampling is repeated. This is an SIOW application and could be done more elegantly using a graphical representation for sound input levels. But you get the idea. . . Requirements: Sound Manager 3.2.1 or later Keywords: sound, record, MeterTest
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-03-14