1 | /* $Id: recmgr.h 142 2000-04-23 14:55:46Z ktk $ */
|
---|
2 |
|
---|
3 | /*
|
---|
4 | **********************************************************************
|
---|
5 | * recmgr.h
|
---|
6 | * Copyright 1999, 2000 Creative Labs, Inc.
|
---|
7 | *
|
---|
8 | **********************************************************************
|
---|
9 | *
|
---|
10 | * Date Author Summary of changes
|
---|
11 | * ---- ------ ------------------
|
---|
12 | * October 20, 1999 Bertrand Lee base code release
|
---|
13 | *
|
---|
14 | **********************************************************************
|
---|
15 | *
|
---|
16 | * This program is free software; you can redistribute it and/or
|
---|
17 | * modify it under the terms of the GNU General Public License as
|
---|
18 | * published by the Free Software Foundation; either version 2 of
|
---|
19 | * the License, or (at your option) any later version.
|
---|
20 | *
|
---|
21 | * This program is distributed in the hope that it will be useful,
|
---|
22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
24 | * GNU General Public License for more details.
|
---|
25 | *
|
---|
26 | * You should have received a copy of the GNU General Public
|
---|
27 | * License along with this program; if not, write to the Free
|
---|
28 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
|
---|
29 | * USA.
|
---|
30 | *
|
---|
31 | **********************************************************************
|
---|
32 | */
|
---|
33 |
|
---|
34 | #ifndef _RECORDMGR_H
|
---|
35 | #define _RECORDMGR_H
|
---|
36 |
|
---|
37 | struct record
|
---|
38 | {
|
---|
39 | struct emu10k1_card *card;
|
---|
40 | u8 *recbuffer;
|
---|
41 | u32 recpos;
|
---|
42 | int is_stereo;
|
---|
43 | int is_16bit;
|
---|
44 | u32 recbufsize;
|
---|
45 | u32 bufsize;
|
---|
46 | u32 bufsizereg;
|
---|
47 | u32 bufaddrreg;
|
---|
48 | u32 bufidxreg;
|
---|
49 | u32 adcctl;
|
---|
50 | unsigned long busaddx;
|
---|
51 | u32 samplingrate;
|
---|
52 | };
|
---|
53 |
|
---|
54 | /* Recording resources */
|
---|
55 | #define WAVERECORD_AC97 0x01
|
---|
56 | #define WAVERECORD_MIC 0x02
|
---|
57 | #define WAVERECORD_FX 0x03
|
---|
58 |
|
---|
59 | void emu10k1_start_record(struct record *);
|
---|
60 | void emu10k1_stop_record(struct record *);
|
---|
61 | void emu10k1_set_record_src(struct record *, u8);
|
---|
62 |
|
---|
63 |
|
---|
64 | #endif /* _RECORDMGR_H */
|
---|