Prior to Mac OS 8.5, the Window Manager supported playing a sound to accompany the transitional "window shade" animation that occurs when a user clicks the collapse box of a window. In addition to this combination of animation and sound for a user interaction with a window, the Mac OS 8.5 Window Manager now supports a combination of animation and sound to go with the opening and closing of windows.
The Mac OS 8.5 Window Manager provides the following function for displaying a window with animation and sound:
Creating a Window provides an example of how your application might call the TransitionWindow function.