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.
20 #ifndef AHI_Drivers_EMU10kx_emu10kx_misc_h
21 #define AHI_Drivers_EMU10kx_emu10kx_misc_h
25 #include <devices/ahi.h>
26 #include <DriverData.h>
30 AllocDriverData( APTR dev
,
31 struct DriverBase
* AHIsubBase
);
34 FreeDriverData( struct EMU10kxData
* dd
,
35 struct DriverBase
* AHIsubBase
);
38 SaveMixerState( struct EMU10kxData
* dd
);
41 RestoreMixerState( struct EMU10kxData
* dd
);
44 UpdateMonitorMixer( struct EMU10kxData
* dd
);
47 Linear2MixerGain( Fixed linear
,
51 Linear2RecordGain( Fixed linear
,
55 SamplerateToLinearPitch( ULONG samplingrate
);
57 #endif /* AHI_Drivers_EMU10kx_emu10kx_misc_h */