diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-06-22 22:26:45 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-06-22 22:26:45 +0200 |
commit | 20575a338e9640eca924958484a5fee800e09971 (patch) | |
tree | efaeac41a8a21bea1c90494b3b0968169d4f8732 /plugins/ao/eng_dsf/aicadsp.h | |
parent | c901a7cbf52ee234220f21b85c2e77667264d16c (diff) |
audio overload plugin - highly experimental; no seeking; crashes
Diffstat (limited to 'plugins/ao/eng_dsf/aicadsp.h')
-rw-r--r-- | plugins/ao/eng_dsf/aicadsp.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/plugins/ao/eng_dsf/aicadsp.h b/plugins/ao/eng_dsf/aicadsp.h new file mode 100644 index 00000000..b10accff --- /dev/null +++ b/plugins/ao/eng_dsf/aicadsp.h @@ -0,0 +1,37 @@ +#ifndef AICADSP_H +#define AICADSP_H + +//the DSP Context +struct _AICADSP +{ +//Config + UINT16 *AICARAM; + UINT32 AICARAM_LENGTH; + UINT32 RBP; //Ring buf pointer + UINT32 RBL; //Delay ram (Ring buffer) size in words + +//context + + INT16 COEF[128*2]; //16 bit signed + UINT16 MADRS[64*2]; //offsets (in words), 16 bit + UINT16 MPRO[128*4*2*2]; //128 steps 64 bit + INT32 TEMP[128]; //TEMP regs,24 bit signed + INT32 MEMS[32]; //MEMS regs,24 bit signed + UINT32 DEC; + +//input + INT32 MIXS[16]; //MIXS, 24 bit signed + INT16 EXTS[2]; //External inputs (CDDA) 16 bit signed + +//output + INT16 EFREG[16]; //EFREG, 16 bit signed + + int Stopped; + int LastStep; +}; + +void AICADSP_Init(struct _AICADSP *DSP); +void AICADSP_SetSample(struct _AICADSP *DSP, INT32 sample, INT32 SEL, INT32 MXL); +void AICADSP_Step(struct _AICADSP *DSP); +void AICADSP_Start(struct _AICADSP *DSP); +#endif |