Previous Book Contents Book Index Next

Inside Macintosh: Sound /
Chapter 6 - Audio Components / Audio Components Reference
Audio Component-Defined Routines / Resetting Audio Components


Legacy Documentclose button

Important: Inside Macintosh: Sound is deprecated as of Mac OS X v10.5. For new audio development in Mac OS X, use Core Audio. See the Audio page in the ADC Reference Library.

AudioSetToDefaults

The Sound Manager might call your AudioSetToDefaults function to reset an audio port.

pascal ComponentResult AudioSetToDefaults (ComponentInstance ac);
ac
A component instance that identifies your audio component.
DESCRIPTION
Your AudioSetToDefaults function should reset its volume and mute levels to some reasonable default value. It should also reset to reasonable values any other settings it might be maintaining privately.

RESULT CODES
Your AudioSetToDefaults function should return noErr if successful or an appropriate result code otherwise.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996