Rev 5057 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2455 | mario79 | 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
||
5363 | yogev_ezra | 3 | ;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;; |
2455 | mario79 | 4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
||
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
||
7 | |||
2288 | clevermous | 8 | ;flags------------------------------------------------------------ |
9 | DEBUG equ 1 ;show messages at debug board |
||
10 | use_cli_sti equ 1 ;driver become more stable (theoretically) |
||
11 | |||
12 | ;constants-------------------------------------------------------- |
||
13 | API_VERSION equ 0 ;debug |
||
14 | |||
15 | sb_irq_num equ 5 ;default values for SB16, may be overrided by autodetect |
||
16 | sb_dma_num equ 5 ;default values for SB16, may be overrided by autodetect |
||
17 | |||
18 | small_buffer equ 32768 |
||
19 | full_buffer equ 65536 |
||
20 | sb_buffer_size equ small_buffer ; FIX ring buffer overlapped events issue; full_buffer |
||
21 | |||
22 | __supported_buffer_sizes fix |
||
23 | |||
24 | if ~(sb_buffer_size in __supported_buffer_sizes) |
||
25 | display 13,10,'unsupported buffer size was selected, check config.inc',13,10 |
||
26 | stop |
||
27 | end if |
||
28 | |||
29 | sb_out_rate equ 48000 |
||
30 | ;time constant for cards older than SB16 |
||
31 | sb_tc equ (256-(1000000/(sb_out_rate*2))) |
||
32 | |||
33 | SRV_GETVERSION equ 0 |
||
34 | DEV_PLAY equ 1 |
||
35 | DEV_STOP equ 2 |
||
36 | DEV_CALLBACK equ 3 |
||
37 | DEV_SET_BUFF equ 4 |
||
38 | DEV_NOTIFY equ 5 |
||
39 | DEV_SET_MASTERVOL equ 6 |
||
40 | DEV_GET_MASTERVOL equ 7 |
||
41 | DEV_GET_INFO equ 8 |
||
42 | |||
43 | DRV_ENTRY equ 1 |
||
44 | DRV_EXIT equ -1 |
||
45 |