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

        IFND    DEVICES_AUDIO_I
DEVICES_AUDIO_I SET     1
**
**      $Filename: devices/audio.i $
**      $Release: 2.04 Includes, V37.4 $
**      $Revision: 36.3 $
**      $Date: 90/08/29 $
**
**      audio.device include file
**
**      (C) Copyright 1985-1999 Amiga, Inc.
**          All Rights Reserved
**

        IFND    EXEC_IO_I
        INCLUDE "exec/io.i"
        ENDC

AUDIONAME MACRO
                DC.B    'audio.device',0
        ENDM

ADHARD_CHANNELS         EQU     4

ADALLOC_MINPREC         EQU     -128
ADALLOC_MAXPREC         EQU     127

ADCMD_FREE              EQU     CMD_NONSTD+0
ADCMD_SETPREC           EQU     CMD_NONSTD+1
ADCMD_FINISH            EQU     CMD_NONSTD+2
ADCMD_PERVOL            EQU     CMD_NONSTD+3
ADCMD_LOCK              EQU     CMD_NONSTD+4
ADCMD_WAITCYCLE         EQU     CMD_NONSTD+5
ADCMD_ALLOCATE          EQU     32

ADIOB_PERVOL            EQU     4
ADIOF_PERVOL            EQU     1<<4
ADIOB_SYNCCYCLE         EQU     5
ADIOF_SYNCCYCLE         EQU     1<<5
ADIOB_NOWAIT            EQU     6
ADIOF_NOWAIT            EQU     1<<6
ADIOB_WRITEMESSAGE      EQU     7
ADIOF_WRITEMESSAGE      EQU     1<<7

ADIOERR_NOALLOCATION    EQU     -10
ADIOERR_ALLOCFAILED     EQU     -11
ADIOERR_CHANNELSTOLEN   EQU     -12

    STRUCTURE   IOAudio,IO_SIZE
        WORD    ioa_AllocKey
        APTR    ioa_Data
        ULONG   ioa_Length
        UWORD   ioa_Period
        UWORD   ioa_Volume
        UWORD   ioa_Cycles
        STRUCT  ioa_WriteMsg,MN_SIZE
        LABEL   ioa_SIZEOF

        ENDC    ; DEVICES_AUDIO_I