← develop-11 9208 August 1992

develop-11 9208 August 1992

From the originals

13 scans

Machine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.

These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.

PDF page 12

When your application terminates, it calls Helper’s kill routine. Helper’s method of communication with the application minimizes processing overhead. By using the attention flag scheme, your application calls Helper’s idle routine only when it’s really necessary. This could be important in game and multimedia applications where CPU bandwidth is pushed to the limit. HELPER’S INTERFACE Now let’s take a look at the interfaces and the basic uses of the routines provided by Helper. Later we’ll go into more detail about how the routines work and how to use them. INITIALIZATION, IDLE, AND TERMINATION pascal OSErr SHInitSoundHelper(Boolean *attnFlag, short numChannels); pascal void SHIdle(void); pascal void SHKillSoundHelper(void); SHInitSoundHelper initializes Helper. It allocates memory, so you should call it near the beginning of your application. The application passes to SHInitSoundHelper the address of the Boolean attention flag that Helper uses to inform the application when it needs attention. d e v e l o p August 1992 Helper is written in C, but all public routines are declared as Pascal so that they can be called from other languages.• 10 Application Helper 1 2 3 4 Application 5 callBackCmd Sound Manager SHIdle Asynchronous sound Channel Attention flag SHPlayByID Helper Helper Application Figure 2 Application-Sound Manager Interface

Reading notes: Running headers and figure labels in the source may have been partially lost; reading order of figure text is uncertain.

Printed dates
August 1992
Languages
English