ReactOS
0.4.16-dev-297-gc569aee
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
mixer.c
Go to the documentation of this file.
1
/*
2
* COPYRIGHT: See COPYING in the top level directory
3
* PROJECT: ReactOS kernel
4
* FILE: drivers/dd/sound/mixer.c
5
* PURPOSE: Wave Mixer?
6
* PROGRAMMER: ?
7
*
8
* UPDATE HISTORY:
9
* ??/??/??: Created
10
* 10/23/02: Steven Edwards (Steven_Ed4153@yahoo.com)
11
* Minor build fixes
12
*/
13
14
#include "
sb16.h
"
15
#include "
dsp.h
"
16
#include "
mixer.h
"
17
18
unsigned
char
read_mixer
(
unsigned
short
base
,
unsigned
char
reg
)
19
{
20
21
// outb(base+0x04,reg);
22
// return inb(base+0x05);
23
return
0;
24
}
25
26
unsigned
char
get_irq
(
SB16
*
sb16
)
27
{
28
unsigned
char
irq
;
29
irq
=(
read_mixer
(
sb16
->
base
,
MIXER_INTERRUPT_SETUP_REGISTER
)&0x0f);
30
31
if
(
irq
==1)
sb16
->
irq
=2;
32
if
(
irq
==2)
sb16
->
irq
=5;
33
if
(
irq
==4)
sb16
->
irq
=7;
34
if
(
irq
==8)
sb16
->
irq
=10;
35
return
0;
36
}
37
38
void
get_dma
(
SB16
*
sb16
)
39
{
40
unsigned
char
hi,lo,
result
=
read_mixer
(
sb16
->
base
,
MIXER_DMA_SETUP_REGISTER
);
41
hi=
result
&0xE0;
42
lo=
result
&0x0B;
43
if
(hi==0x80)
sb16
->
dma16
=7;
44
if
(hi==0x40)
sb16
->
dma16
=6;
45
if
(hi==0x20)
sb16
->
dma16
=5;
46
47
if
(lo==0x08)
sb16
->
dma8
=3;
48
if
(lo==0x02)
sb16
->
dma8
=1;
49
if
(lo==0x01)
sb16
->
dma8
=0;
50
}
get_dma
void get_dma(SB16 *sb16)
Definition:
mixer.c:38
read_mixer
unsigned char read_mixer(unsigned short base, unsigned char reg)
Definition:
mixer.c:18
get_irq
unsigned char get_irq(SB16 *sb16)
Definition:
mixer.c:26
sb16
SB16 sb16
Definition:
sound.c:26
dsp.h
irq
unsigned char irq
Definition:
dsp.h:13
result
GLuint64EXT * result
Definition:
glext.h:11304
reg
static int reg
Definition:
i386-dis.c:1290
mixer.h
MIXER_DMA_SETUP_REGISTER
#define MIXER_DMA_SETUP_REGISTER
Definition:
mixer.h:2
MIXER_INTERRUPT_SETUP_REGISTER
#define MIXER_INTERRUPT_SETUP_REGISTER
Definition:
mixer.h:1
SB16
Definition:
sb16.h:2
SB16::dma16
unsigned char dma16
Definition:
sb16.h:6
SB16::irq
unsigned char irq
Definition:
sb16.h:4
SB16::base
unsigned short base
Definition:
sb16.h:3
SB16::dma8
unsigned char dma8
Definition:
sb16.h:5
base
Definition:
uninitialized_test.cpp:81
sb16.h
drivers
multimedia
audio
sound
mixer.c
Generated on Tue Nov 26 2024 06:13:48 for ReactOS by
1.9.6