Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
#include "semaphore.h"
2
 
3
 
4
typedef struct sb_device {
5
    DWORD BaseAddress;
6
    BYTE IntLine;
7
    BYTE DMA8Channel;
8
    BYTE DMA16Channel;
9
    BYTE DSPVersionM;
10
    BYTE DSPVersionm;
11
//    WORD period;
12
//    BYTE pwarning;
13
    TASK_MODEL *m;
14
} SB_DEVICE;
15
 
16
typedef struct sound_buffer {
17
    sem_t synchr;
18
    BYTE synch;
19
    struct dma_buff *sound_dma;
20
    int (*fun)(struct dma_buff *buff);
21
} SOUND_BUFFER;
22
 
23
typedef struct rawfuncs {
24
    int (*infun)(void *rawbuffer);
25
    BYTE infunpresent;
26
    int (*outfun)(void *rawbuffer);
27
    BYTE outfunpresent;
28
} RAWFUNCS;
29
 
30
void sb_spkoff (void);
31
void sb_spkon (void);
32
int sb_init (void); // return 0 if ok or ENODEV otherwise
33
void sbmixer_setmiclev(BYTE level);
34
void sbmixer_setoutput(BYTE in, BYTE onoff);
35
void sbmixer_setinput(BYTE in, BYTE onoff);
36
void sbmixer_reset(void);
37
void sbmixer_setingainlev(BYTE level);
38
void sbmixer_setAGC(BYTE onoff);
39
void sb_setrate (int sps, BYTE i_o);
40
void sb_dmaop(BYTE i_o);
41
void sb_dma16op(BYTE i_o);
42
void sb_dmabuffop(BYTE i_o);
43
void sb_dma16buffop(BYTE i_o);
44
void sb_stopdsp(BYTE b);
45
void sb_show(void);