[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]

Commands for audio use can be divided into two categories:
allocation/arbitration commands and hardware control commands.

There are four allocation/arbitration commands.  These do not actually
produce any sound.  Instead they manage and arbitrate the audio resources
for the many tasks that may be using audio in the Amiga's multitasking
environment.

    adcmd_allocate   - reserves an audio channel for your program to use.
    adcmd_free       - frees an audio channel.
    adcmd_setprec    - changes the precedence of a sound in progress.
    adcmd_lock       - tells if a channel has been stolen from you.

The hardware control commands are used to set up, start, and stop sounds
on the audio device:

    cmd_write        - the main command.  starts a sound playing.
    adcmd_finish     - aborts a sound in progress.
    adcmd_pervol     - changes the period (speed) and volume of a sound
                        in progress.
    cmd_flush        - clears the audio channels.
    cmd_reset        - resets and initializes the audio device.
    adcmd_waitcycle  - signals you when a cycle finishes.
    cmd_stop         - temporarily stops a channel from playing.
    cmd_start        - restarts an audio channel that was stopped.
    cmd_read         - returns a pointer to the current ioaudio request.