|
|
This program is furnished on an AS IS basis as a demonstration of audio applications programming.
gaintool demonstrates an important principle involved in the integration of audio in the desktop environment: by enabling global control of important audio characteristics, it is not necessary for every application to provide an interface for these parameters. For instance, since audio output may be paused from the control panel, it is not strictly necessary that output applications display a Pause button of their own. However, such applications may detect that audio output has been paused, and take appropriate action.
If no process has the device open for output when Pause is pressed, gaintool holds the device open itself, thereby denying other processes output access. Audio programs that simply open and write to the audio device will typically be suspended when they attempt to open the device. Programs that asynchronously poll the device will discover that it is ``busy'' and may take appropriate action.
gaintool also includes an audio status panel that shows the current state of the audio device. This panel is extremely useful for debugging audio applications. Selecting ``Status...'' from the panel menu brings up the status panel (this can also be done on a SPARC system by pressing the PROPS (L3) key). Selecting ``Done'' from the panel menu removes the panel (this can also be done on a SPARC system by pressing the OPEN (L7) key).
When the Update Mode is set to Status Change, the audio device status is updated only when a SIGPOLL signal is delivered to gaintool (see audio.7i on an x86 system see sbpro.7d Because of this, the Active and Samples indicators are not necessarily kept up-to-date. This mode is useful for application debugging in order to see exactly when audio device status changes are being reported. When the Continuous mode is selected, the status is continually updated.
See audiotool manual page in
|
|
Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 07/October/97