revert between 56095 -> 55830 in arch
[AROS.git] / workbench / devs / AHI / Device / sound.h
blob52b12f89213c20fc7a418420392c2b545c9d68bb
1 /*
2 AHI - Hardware independent audio subsystem
3 Copyright (C) 2017 The AROS Dev Team
4 Copyright (C) 1996-2005 Martin Blom <martin@blom.org>
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public
17 License along with this library; if not, write to the
18 Free Software Foundation, Inc., 59 Temple Place - Suite 330, Cambridge,
19 MA 02139, USA.
22 #ifndef ahi_sound_h
23 #define ahi_sound_h
25 #include "ahi_def.h"
27 ULONG
28 _AHI_SetVol ( UWORD channel,
29 Fixed volume,
30 sposition pan,
31 struct AHIPrivAudioCtrl* audioctrl,
32 ULONG flags,
33 struct AHIBase* AHIBase );
36 ULONG
37 _AHI_SetFreq ( UWORD channel,
38 ULONG freq,
39 struct AHIPrivAudioCtrl* audioctrl,
40 ULONG flags,
41 struct AHIBase* AHIBase );
44 ULONG
45 _AHI_SetSound ( UWORD channel,
46 UWORD sound,
47 ULONG offset,
48 LONG length,
49 struct AHIPrivAudioCtrl* audioctrl,
50 ULONG flags,
51 struct AHIBase* AHIBase );
54 ULONG
55 _AHI_SetEffect( IPTR* effect,
56 struct AHIPrivAudioCtrl* audioctrl,
57 struct AHIBase* AHIBase );
60 ULONG
61 _AHI_LoadSound( UWORD sound,
62 ULONG type,
63 APTR info,
64 struct AHIPrivAudioCtrl* audioctrl,
65 struct AHIBase* AHIBase );
68 ULONG
69 _AHI_UnloadSound( UWORD sound,
70 struct AHIPrivAudioCtrl* audioctrl,
71 struct AHIBase* AHIBase );
74 ULONG
75 _AHI_PlayA( struct AHIPrivAudioCtrl* audioctrl,
76 struct TagItem* tags,
77 struct AHIBase* AHIBase );
80 ULONG
81 _AHI_SampleFrameSize( ULONG sampletype,
82 struct AHIBase* AHIBase );
84 #endif /* ahi_sound_h */