home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 13 / MA_Cover_13.bin / source / c / ahisrc / device / dsp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-09-18  |  1.9 KB  |  54 lines

  1. /* $Id: dsp.h,v 4.10 1999/09/18 09:16:23 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. typedef void (*ECHOFUNC)( struct Echo *,
  30.                           void *,
  31.                           struct AHIPrivAudioCtrl * );
  32.  
  33. struct Echo
  34. {
  35.     ULONG    ahiecho_Delay;
  36.     ECHOFUNC ahiecho_Code;        // The echo routine
  37.     Fixed    ahiecho_FeedbackDS;    // Delayed signal to same channel
  38.     Fixed    ahiecho_FeedbackDO;    // Delayed signal to other channel
  39.     Fixed    ahiecho_FeedbackNS;    // Normal signal to same channel
  40.     Fixed    ahiecho_FeedbackNO;    // Normal signal to other channel
  41.     Fixed    ahiecho_MixN;        // Normal signal
  42.     Fixed    ahiecho_MixD;        // Delayed signal
  43.     ULONG    ahiecho_Offset;        // (&Buffer-&SrcPtr)/sizeof(ahiecho_Buffer[0])
  44.     APTR    ahiecho_SrcPtr;        // Pointer to &Buffer
  45.     APTR    ahiecho_DstPtr;        // Pointer to &(Buffer[Delay])
  46.     APTR    ahiecho_EndPtr;        // Pointer to address after buffer
  47.     ULONG    ahiecho_BufferLength;    // Delay buffer length in samples
  48.     ULONG    ahiecho_BufferSize;    // Delay buffer size in bytes
  49.     BYTE    ahiecho_Buffer[0];    // Delay buffer
  50. };
  51.  
  52.  
  53. #endif /* _DSP_H_ */
  54.