home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / languages / obrn-a_1.5_lib.lha / oberon-a / source1.lha / source / amiga / Audio.mod < prev    next >
Encoding:
Text File  |  1995-01-26  |  1.7 KB  |  82 lines

  1. (***************************************************************************
  2.  
  3.      $RCSfile: Audio.mod $
  4.   Description: Interface to audio.device
  5.  
  6.    Created by: fjc (Frank Copeland)
  7.     $Revision: 3.7 $
  8.       $Author: fjc $
  9.         $Date: 1995/01/26 02:39:55 $
  10.  
  11.   $VER: audio.h 36.3 (29.8.90)
  12.   Includes Release 40.15
  13.  
  14.   (C) Copyright 1985-1993 Commodore-Amiga, Inc.
  15.       All Rights Reserved
  16.  
  17.   Oberon-A interface Copyright © 1994-1995, Frank Copeland.
  18.   This file is part of the Oberon-A Interface.
  19.   See Oberon-A.doc for conditions of use and distribution.
  20.  
  21. ***************************************************************************)
  22.  
  23. <* STANDARD- *> <* INITIALISE- *> <* MAIN- *>
  24. <*$ CaseChk-  IndexChk- LongVars+ NilChk-  *>
  25. <*$ RangeChk- StackChk- TypeChk-  OvflChk- *>
  26.  
  27. MODULE [2] Audio;
  28.  
  29. IMPORT e := Exec;
  30.  
  31.  
  32. (*
  33. **
  34. **      audio.device include file
  35. **
  36. *)
  37.  
  38. CONST
  39.  
  40.   audioName            * = "audio.device";
  41.  
  42.   hardChannels         * = 4;
  43.  
  44.   allocMinPrec         * = -128;
  45.   allocMaxPrec         * = 127;
  46.  
  47.   free              * = e.nonstd+0;
  48.   setPrec           * = e.nonstd+1;
  49.   finish            * = e.nonstd+2;
  50.   perVol            * = e.nonstd+3;
  51.   lock              * = e.nonstd+4;
  52.   waitCycle         * = e.nonstd+5;
  53.   allocate          * = 32;
  54.  
  55.   pervol            * = 4;
  56.   syncCycle         * = 5;
  57.   noWait            * = 6;
  58.   writeMessage      * = 7;
  59.  
  60.   noAllocation    * = -10;
  61.   allocFailed     * = -11;
  62.   channelStolen   * = -12;
  63.  
  64. TYPE
  65.  
  66.   IOAudioPtr * = POINTER TO IOAudio;
  67.   IOAudio * = RECORD (e.IORequestBase)
  68.     request *   : e.IORequest;
  69.     allocKey *  : INTEGER;
  70.     data *      : e.APTR;
  71.     length *    : e.ULONG;
  72.     period *    : e.UWORD;
  73.     volume *    : e.UWORD;
  74.     cycles *    : e.UWORD;
  75.     writeMsg *  : e.Message;
  76.   END; (* IOAudio *)
  77.  
  78.  
  79. END Audio.
  80.  
  81.  
  82.