home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 106 / EnigmaAmiga106CD.iso / software / sviluppo / ahisrc / device / dsp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-04-22  |  2.1 KB  |  65 lines

  1. /* $Id: dsp.h,v 4.9 1999/04/22 19:42:04 lcs Exp $ */
  2.  
  3. /*
  4.      AHI - Hardware independent audio subsystem
  5.      Copyright (C) 1996-1999 Martin Blom <martin@blom.org>
  6.      
  7.      This library is free software; you can redistribute it and/or
  8.      modify it under the terms of the GNU Library General Public
  9.      License as published by the Free Software Foundation; either
  10.      version 2 of the License, or (at your option) any later version.
  11.      
  12.      This library is distributed in the hope that it will be useful,
  13.      but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.      Library General Public License for more details.
  16.      
  17.      You should have received a copy of the GNU Library General Public
  18.      License along with this library; if not, write to the
  19.      Free Software Foundation, Inc., 59 Temple Place - Suite 330, Cambridge,
  20.      MA 02139, USA.
  21. */
  22.  
  23. #ifndef _DSP_H_
  24. #define _DSP_H_
  25.  
  26. #include <exec/types.h>
  27. #include "ahi_def.h"
  28.  
  29.  
  30. #ifdef VERSION68K
  31.  
  32. typedef void ASMCALL (*ECHOFUNC)( REG(a0, struct Echo *),
  33.                                   REG(a1, void *),
  34.                                   REG(a2, struct AHIPrivAudioCtrl *) );
  35.  
  36. #else
  37.  
  38. typedef void (*ECHOFUNC)( struct Echo *,
  39.                           void *,
  40.                           struct AHIPrivAudioCtrl * );
  41.  
  42. #endif
  43.  
  44. struct Echo
  45. {
  46.     ULONG    ahiecho_Delay;
  47.     ECHOFUNC ahiecho_Code;        // The echo routine
  48.     Fixed    ahiecho_FeedbackDS;    // Delayed signal to same channel
  49.     Fixed    ahiecho_FeedbackDO;    // Delayed signal to other channel
  50.     Fixed    ahiecho_FeedbackNS;    // Normal signal to same channel
  51.     Fixed    ahiecho_FeedbackNO;    // Normal signal to other channel
  52.     Fixed    ahiecho_MixN;        // Normal signal
  53.     Fixed    ahiecho_MixD;        // Delayed signal
  54.     ULONG    ahiecho_Offset;        // (&Buffer-&SrcPtr)/sizeof(ahiecho_Buffer[0])
  55.     APTR    ahiecho_SrcPtr;        // Pointer to &Buffer
  56.     APTR    ahiecho_DstPtr;        // Pointer to &(Buffer[Delay])
  57.     APTR    ahiecho_EndPtr;        // Pointer to address after buffer
  58.     ULONG    ahiecho_BufferLength;    // Delay buffer length in samples
  59.     ULONG    ahiecho_BufferSize;    // Delay buffer size in bytes
  60.     BYTE    ahiecho_Buffer[0];    // Delay buffer
  61. };
  62.  
  63.  
  64. #endif /* _DSP_H_ */
  65.