PCem

view src/sound_sb_dsp.h @ 133:24b744b9a632

ViRGE S3D triangle rendering now uses worker thread. Fixed clipping bug on ViRGE. Fixed status window crash.
author TomW
date Tue Jul 22 21:10:39 2014 +0100
parents 65adf253efaa
children
line source
1 typedef struct sb_dsp_t
2 {
3 int sb_type;
5 int sb_8_length, sb_8_format, sb_8_autoinit, sb_8_pause, sb_8_enable, sb_8_autolen, sb_8_output;
6 int sb_8_dmanum;
7 int sb_16_length, sb_16_format, sb_16_autoinit, sb_16_pause, sb_16_enable, sb_16_autolen, sb_16_output;
8 int sb_pausetime;
10 uint8_t sb_read_data[256];
11 int sb_read_wp, sb_read_rp;
12 int sb_speaker;
14 int sb_data_stat;
16 int sb_irqnum;
18 uint8_t sbe2;
19 int sbe2count;
21 uint8_t sb_data[8];
23 int sb_freq;
25 int writebusy; /*Needed for Amnesia*/
27 int16_t sbdat;
28 int sbdat2;
29 int16_t sbdatl, sbdatr;
31 uint8_t sbref;
32 int8_t sbstep;
34 int sbdacpos;
36 int sbleftright;
38 int sbreset;
39 uint8_t sbreaddat;
40 uint8_t sb_command;
41 uint8_t sb_test;
42 int sb_timei, sb_timeo;
44 int sb_irq8, sb_irq16;
46 uint8_t sb_asp_regs[256];
48 int sbenable, sb_enable_i;
50 int sbcount, sb_count_i;
52 int sblatcho, sblatchi;
54 uint16_t sb_addr;
56 int stereo;
57 } sb_dsp_t;
59 void sb_dsp_init(sb_dsp_t *dsp, int type);
61 void sb_dsp_setirq(sb_dsp_t *dsp, int irq);
62 void sb_dsp_setdma8(sb_dsp_t *dsp, int dma);
63 void sb_dsp_setaddr(sb_dsp_t *dsp, uint16_t addr);
65 void sb_dsp_speed_changed(sb_dsp_t *dsp);
67 void sb_dsp_poll(sb_dsp_t *dsp, int16_t *l, int16_t *r);
69 void sb_dsp_set_stereo(sb_dsp_t *dsp, int stereo);
71 void sb_dsp_add_status_info(char *s, int max_len, sb_dsp_t *dsp);