2 emu10kx.audio - AHI driver for SoundBlaster Live! series
3 Copyright (C) 2002-2005 Martin Blom <martin@blom.org>
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
10 This program 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
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 #include <devices/ahi.h>
23 #include <libraries/ahi_sub.h>
24 #include <utility/hooks.h>
28 /******************************************************************************
29 ** AHIsub_SetVol **************************************************************
30 ******************************************************************************/
33 _AHIsub_SetVol( UWORD channel
,
36 struct AHIAudioCtrlDrv
* AudioCtrl
,
38 struct DriverBase
* AHIsubBase
)
44 /******************************************************************************
45 ** AHIsub_SetFreq *************************************************************
46 ******************************************************************************/
49 _AHIsub_SetFreq( UWORD channel
,
51 struct AHIAudioCtrlDrv
* AudioCtrl
,
53 struct DriverBase
* AHIsubBase
)
59 /******************************************************************************
60 ** AHIsub_SetSound ************************************************************
61 ******************************************************************************/
64 _AHIsub_SetSound( UWORD channel
,
68 struct AHIAudioCtrlDrv
* AudioCtrl
,
70 struct DriverBase
* AHIsubBase
)
76 /******************************************************************************
77 ** AHIsub_SetEffect ***********************************************************
78 ******************************************************************************/
81 _AHIsub_SetEffect( APTR effect
,
82 struct AHIAudioCtrlDrv
* AudioCtrl
,
83 struct DriverBase
* AHIsubBase
)
89 /******************************************************************************
90 ** AHIsub_LoadSound ***********************************************************
91 ******************************************************************************/
94 _AHIsub_LoadSound( UWORD sound
,
97 struct AHIAudioCtrlDrv
* AudioCtrl
,
98 struct DriverBase
* AHIsubBase
)
104 /******************************************************************************
105 ** AHIsub_UnloadSound *********************************************************
106 ******************************************************************************/
109 _AHIsub_UnloadSound( UWORD sound
,
110 struct AHIAudioCtrlDrv
* AudioCtrl
,
111 struct DriverBase
* AHIsubBase
)