Subversion Repositories Kolibri OS

Rev

Rev 281 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
168 serge 1
;
2
;   This file is part of the Infinity sound AC97 driver.
3
;   (C) copyright Serge 2006
4
;   email: infinity_sound@mail.ru
5
;
6
;   This program is free software; you can redistribute it and/or modify
7
;   it under the terms of the GNU General Public License as published by
8
;   the Free Software Foundation; either version 2 of the License, or
9
;   (at your option) any later version.
10
;
11
;   This program is distributed in the hope that it will be useful,
12
;   but WITHOUT ANY WARRANTY; without even the implied warranty of
13
;   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
;   GNU General Public License for more details.
15
 
16
PCM_2_16_48    equ   1
17
PCM_1_16_48    equ   2
18
 
19
PCM_2_16_44    equ   3
20
PCM_1_16_44    equ   4
21
 
22
PCM_2_16_32    equ   5
23
PCM_1_16_32    equ   6
24
 
25
PCM_2_16_24    equ   7
26
PCM_1_16_24    equ   8
27
 
28
PCM_2_16_22    equ   9
29
PCM_1_16_22    equ  10
30
 
31
PCM_2_16_16    equ  11
32
PCM_1_16_16    equ  12
33
 
34
PCM_2_16_12    equ  13
35
PCM_1_16_12    equ  14
36
 
37
PCM_2_16_11    equ  15
38
PCM_1_16_11    equ  16
39
 
40
PCM_2_8_48     equ  17
41
PCM_1_8_48     equ  18
42
 
43
PCM_2_8_44     equ  19
44
PCM_1_8_44     equ  20
45
 
46
PCM_2_8_32     equ  21
47
PCM_1_8_32     equ  22
48
 
49
PCM_2_8_24     equ  23
50
PCM_1_8_24     equ  24
51
 
52
PCM_2_8_22     equ  25
53
PCM_1_8_22     equ  26
54
 
55
PCM_2_8_16     equ  27
56
PCM_1_8_16     equ  28
57
 
58
PCM_2_8_12     equ  29
59
PCM_1_8_12     equ  30
60
 
61
PCM_2_8_11     equ  31
62
PCM_1_8_11     equ  32
63
 
64
SND_PLAY       equ   1
65
SND_STOP       equ   2
66
 
67
;  struc SND_DEV
68
;{ .magic          dd 0
69
;  .size           dd 0
70
;  .count          dd 0
71
;                  dd 0
72
;  .snd_buff       dd 16 dup (0)
73
;}
74
 
75
;virtual at 0
76
; SND_DEV SND_DEV
77
;end virtual
78
 
79
;SND_DEV_SIZE     equ 80
80
 
81
 
82
struc STREAM
83
{   .magic         dd 0
84
    .size          dd 0
85
    .device        dd 0
86
    .format        dd 0
87
    .flags         dd 0
88
 
89
    .work_buff     dd 0
90
    .work_read     dd 0
91
    .work_write    dd 0
92
    .work_count    dd 0
93
    .work_top      dd 0
94
    .r_size        dd 0
95
    .r_end         dd 0
96
    .r_dt          dd 0
97
    .r_silence     dd 0
98
 
99
    .base          dd 0
281 serge 100
    .limit         dd 0
101
    .seg_0         dd 0
102
    .lim_0         dd 0
103
    .seg_1         dd 0
104
    .lim_1         dd 0
168 serge 105
    .curr_seg      dd 0
281 serge 106
 
168 serge 107
    .buff_size     dd 0
108
    .notify_off1   dd 0
109
    .notify_off2   dd 0
110
    .notify_task   dd 0
111
    .resample      dd 0
112
}
113
 
285 serge 114
STREAM_SIZE    equ 26*4
168 serge 115
 
116
virtual at 0
117
 STREAM STREAM
118
end virtual
119
 
120
struc WAVE_HEADER
121
{   .riff_id        dd  ?
122
    .riff_size      dd  ?
123
    .riff_format    dd  ?
124
 
125
    .fmt_id         dd  ?
126
    .fmt_size       dd  ?
127
    .format_tag     dw  ?
128
    .channels       dw  ?
129
    .freq           dd  ?
130
    .bytes_sec      dd  ?
131
    .block_align    dw  ?
132
    .bits_sample    dw  ?
133
 
134
    .data_id        dd  ?
135
    .data_size      dd  ?
136
}
137