Added Aztech Sound Galaxy Pro 16 AB (Washington, AZ2316A) and Aztech Sound
Galaxy Nova 16 Extra (Clinton, AZ1605) emulation. Patch from EluanCM. Clinton is currently marked as DEVICE_NOT_WORKING due to issues with DOS drivers.
This commit is contained in:
parent
47e557e9ce
commit
1181b13c2d
17 changed files with 2051 additions and 179 deletions
|
|
@ -1,9 +1,13 @@
|
|||
#include "timer.h"
|
||||
|
||||
#define AD1848_TYPE_DEFAULT 0
|
||||
#define AD1848_TYPE_CS4248 1
|
||||
#define AD1848_TYPE_CS4231 2
|
||||
|
||||
typedef struct ad1848_t
|
||||
{
|
||||
int index;
|
||||
uint8_t regs[16];
|
||||
uint8_t regs[32]; // 16 original + 16 CS4231A extensions
|
||||
uint8_t status;
|
||||
|
||||
int trd;
|
||||
|
|
@ -20,10 +24,12 @@ typedef struct ad1848_t
|
|||
int freq;
|
||||
|
||||
pc_timer_t timer;
|
||||
uint64_t timer_latch;
|
||||
uint64_t timer_latch;
|
||||
|
||||
int16_t buffer[MAXSOUNDBUFLEN * 2];
|
||||
int pos;
|
||||
|
||||
int type;
|
||||
} ad1848_t;
|
||||
|
||||
void ad1848_setirq(ad1848_t *ad1848, int irq);
|
||||
|
|
@ -35,4 +41,4 @@ void ad1848_write(uint16_t addr, uint8_t val, void *p);
|
|||
void ad1848_update(ad1848_t *ad1848);
|
||||
void ad1848_speed_changed(ad1848_t *ad1848);
|
||||
|
||||
void ad1848_init(ad1848_t *ad1848);
|
||||
void ad1848_init(ad1848_t *ad1848, int type);
|
||||
|
|
|
|||
Loading…
Reference in a new issue