Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / AHI / Device / sound.h
blob6b0e0f50dbb5ca880d692ff2dd03719e68bfbe97
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_sound_h
22 #define ahi_sound_h
24 #include "ahi_def.h"
26 ULONG
27 _AHI_SetVol ( UWORD channel,
28 Fixed volume,
29 sposition pan,
30 struct AHIPrivAudioCtrl* audioctrl,
31 ULONG flags,
32 struct AHIBase* AHIBase );
35 ULONG
36 _AHI_SetFreq ( UWORD channel,
37 ULONG freq,
38 struct AHIPrivAudioCtrl* audioctrl,
39 ULONG flags,
40 struct AHIBase* AHIBase );
43 ULONG
44 _AHI_SetSound ( UWORD channel,
45 UWORD sound,
46 ULONG offset,
47 LONG length,
48 struct AHIPrivAudioCtrl* audioctrl,
49 ULONG flags,
50 struct AHIBase* AHIBase );
53 ULONG
54 _AHI_SetEffect( ULONG* effect,
55 struct AHIPrivAudioCtrl* audioctrl,
56 struct AHIBase* AHIBase );
59 ULONG
60 _AHI_LoadSound( UWORD sound,
61 ULONG type,
62 APTR info,
63 struct AHIPrivAudioCtrl* audioctrl,
64 struct AHIBase* AHIBase );
67 ULONG
68 _AHI_UnloadSound( UWORD sound,
69 struct AHIPrivAudioCtrl* audioctrl,
70 struct AHIBase* AHIBase );
73 ULONG
74 _AHI_PlayA( struct AHIPrivAudioCtrl* audioctrl,
75 struct TagItem* tags,
76 struct AHIBase* AHIBase );
79 ULONG
80 _AHI_SampleFrameSize( ULONG sampletype,
81 struct AHIBase* AHIBase );
83 #endif /* ahi_sound_h */