(*
**	Cyclone Modula-2 Interface module:
**	$VER: audio.h 36.3 (29.8.90)
**	Includes Release 40.15
**
**	audio.device include file
**
**	(C) Copyright 1985-1993 Commodore-Amiga, Inc.
**	    All Rights Reserved
**
**      Interface module by Marcel Timmermans
**      (C) Copyright 1995-1996 Marcel Timmermans
**          All Rights Reserved
*)

(*$ Implementation- *)
DEFINITION MODULE Audio; 

FROM SYSTEM IMPORT ADDRESS;

IMPORT ExecD;

CONST
 audioName="audio.device";

 hardChannels=4;

 allocMinprec=-128;
 allocMaxprec=127;

 free=ExecD.nonstd+0;
 setPrec=ExecD.nonstd+1;
 finish=ExecD.nonstd+2;
 perVol=ExecD.nonstd+3;
 lock=ExecD.nonstd+4;
 waitCycle=ExecD.nonstd+5;
 allocate=32;

 pervol=ExecD.IOFlagSet{4};
 syncCycle=ExecD.IOFlagSet{5};
 noWait=ExecD.IOFlagSet{6};
 writeMessage=ExecD.IOFlagSet{7};

 noAllocation=-10;
 allocFailed=-11;
 channelStolen=-12;

TYPE
 IOAudio=RECORD
  request:ExecD.IORequest;
  allocKey:INTEGER;
  data:ADDRESS;
  length:LONGCARD;
  period:CARDINAL;
  volume:CARDINAL;
  cycles:CARDINAL;
  writeMsg:ExecD.Message;
 END;
 IOAudioPtr=POINTER TO IOAudio;

END Audio.
