Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / AHI / Device / dsp.h
blobeb1d95e8a8fbb9c27fa7db2095d3ce86e2a2c57c
1 /*
2 AHI - Hardware independent audio subsystem
3 Copyright (C) 1996-2005 Martin Blom <martin@blom.org>
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with this library; if not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330, Cambridge,
18 MA 02139, USA.
21 #ifndef ahi_dsp_h
22 #define ahi_dsp_h
24 #include <exec/types.h>
25 #include "ahi_def.h"
27 struct Echo;
29 typedef void (*ECHOFUNC)( struct Echo *,
30 void *,
31 struct AHIPrivAudioCtrl * );
33 struct Echo
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
53 #endif /* ahi_dsp_h */