Skip to content

Commit a7e4bcd

Browse files
authored
aesnd: fix AESND_Reset. free voices & fix cmpi of unsigned short. (#143)
1 parent 81151f7 commit a7e4bcd

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

libaesnd/aesndlib.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,12 @@ void AESND_Reset(void)
485485
do {
486486
_CPU_ISR_Flash(level);
487487
} while(__aesnddspinit);
488-
488+
489+
#if defined(HW_DOL)
490+
u32 i=0;
491+
for(;i<MAX_VOICES;i++)
492+
AR_Free(NULL);
493+
#endif
489494
__aesndinit = 0;
490495
}
491496
_CPU_ISR_Restore(level);

libaesnd/dspcode/dspmixer.s

+3-2
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,9 @@ recv_cmd:
156156

157157
cmpi $acc1.m,#0x0100
158158
jeq send_samples
159-
160-
cmpi $acc1.m,#0xdead
159+
160+
lri $acc0.m,#0xdead
161+
cmp
161162
jeq task_terminate
162163

163164
wait_commands:

0 commit comments

Comments
 (0)