audio.pas 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {
  2. This file is part of the Free Pascal run time library.
  3. A file in Amiga system run time library.
  4. Copyright (c) 1998-2003 by Nils Sjoholm
  5. member of the Amiga RTL development team.
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {
  13. History:
  14. Changed integer > smallint.
  15. 09 Feb 2003.
  16. [email protected]
  17. }
  18. unit audio;
  19. INTERFACE
  20. uses exec;
  21. const
  22. AUDIONAME : PChar = 'audio.device';
  23. ADHARD_CHANNELS = 4;
  24. ADALLOC_MINPREC = -128;
  25. ADALLOC_MAXPREC = 127;
  26. ADCMD_FREE = CMD_NONSTD + 0;
  27. ADCMD_SETPREC = CMD_NONSTD + 1;
  28. ADCMD_FINISH = CMD_NONSTD + 2;
  29. ADCMD_PERVOL = CMD_NONSTD + 3;
  30. ADCMD_LOCK = CMD_NONSTD + 4;
  31. ADCMD_WAITCYCLE = CMD_NONSTD + 5;
  32. ADCMDB_NOUNIT = 5;
  33. ADCMDF_NOUNIT = 32;
  34. ADCMD_ALLOCATE = ADCMDF_NOUNIT + 0;
  35. ADIOB_PERVOL = 4;
  36. ADIOF_PERVOL = 16;
  37. ADIOB_SYNCCYCLE = 5;
  38. ADIOF_SYNCCYCLE = 32;
  39. ADIOB_NOWAIT = 6;
  40. ADIOF_NOWAIT = 64;
  41. ADIOB_WRITEMESSAGE = 7;
  42. ADIOF_WRITEMESSAGE = 128;
  43. ADIOERR_NOALLOCATION = -10;
  44. ADIOERR_ALLOCFAILED = -11;
  45. ADIOERR_CHANNELSTOLEN = -12;
  46. type
  47. pIOAudio = ^tIOAudio;
  48. tIOAudio = record
  49. ioa_Request : tIORequest;
  50. ioa_AllocKey : smallint;
  51. ioa_Data : Pointer;
  52. ioa_Length : ULONG;
  53. ioa_Period : Word;
  54. ioa_Volume : Word;
  55. ioa_Cycles : Word;
  56. ioa_WriteMsg : tMessage;
  57. end;
  58. IMPLEMENTATION
  59. end.