diff options
author | 2010-06-29 20:44:53 +0200 | |
---|---|---|
committer | 2010-06-29 20:44:53 +0200 | |
commit | 013f0d807ca2185b643b165d6f51a44147181411 (patch) | |
tree | 6e40ef36371209be65bdde276266bd171bb1a235 /plugins/ao/eng_dsf/eng_dsf.c | |
parent | a255ff9f91e27fa06152210953e2cb35e52f37a9 (diff) |
ao plugin: aica code is now reentrant
Diffstat (limited to 'plugins/ao/eng_dsf/eng_dsf.c')
-rw-r--r-- | plugins/ao/eng_dsf/eng_dsf.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/ao/eng_dsf/eng_dsf.c b/plugins/ao/eng_dsf/eng_dsf.c index e0edb383..18109ba0 100644 --- a/plugins/ao/eng_dsf/eng_dsf.c +++ b/plugins/ao/eng_dsf/eng_dsf.c @@ -17,7 +17,9 @@ #include "eng_protos.h" #include "corlett.h" #include "dc_hw.h" +#include "cpuintrf.h" #include "aica.h" +#include "aicadsp.h" #define DEBUG_LOADER (1) #define DK_CORE (1) @@ -35,9 +37,6 @@ typedef struct { struct sARM7 *cpu; } dsf_synth_t; -//void *aica_start(const void *config); -void AICA_Update(void *param, INT16 **inputs, INT16 **buf, int samples); - void *dsf_start(const char *path, uint8 *buffer, uint32 length) { dsf_synth_t *s = malloc (sizeof (dsf_synth_t)); @@ -193,7 +192,7 @@ int32 dsf_gen(void *handle, int16 *buffer, uint32 samples) #endif stereo[0] = &output[opos]; stereo[1] = &output2[opos]; - AICA_Update(NULL, NULL, stereo, 1); + AICA_Update(s->cpu->AICA, NULL, NULL, stereo, 1); opos++; } |