grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / devs / AHI / Drivers / EMU10kx / emu10kx-misc.h
blob9b9cf6d8a9dda7d622a3e18ad7d953b738895e03
1 /*
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
23 #include <config.h>
25 #include <devices/ahi.h>
26 #include <DriverData.h>
29 struct EMU10kxData*
30 AllocDriverData( APTR dev,
31 struct DriverBase* AHIsubBase );
33 void
34 FreeDriverData( struct EMU10kxData* dd,
35 struct DriverBase* AHIsubBase );
37 void
38 SaveMixerState( struct EMU10kxData* dd );
40 void
41 RestoreMixerState( struct EMU10kxData* dd );
43 void
44 UpdateMonitorMixer( struct EMU10kxData* dd );
46 Fixed
47 Linear2MixerGain( Fixed linear,
48 UWORD* bits );
50 Fixed
51 Linear2RecordGain( Fixed linear,
52 UWORD* bits );
54 ULONG
55 SamplerateToLinearPitch( ULONG samplingrate );
57 #endif /* AHI_Drivers_EMU10kx_emu10kx_misc_h */