Skip to content

Commit

Permalink
aesnd: fix AESND_Reset. free voices & fix cmpi of unsigned short. (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
DacoTaco committed Mar 13, 2023
1 parent 81151f7 commit a7e4bcd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 6 additions & 1 deletion libaesnd/aesndlib.c
Expand Up @@ -485,7 +485,12 @@ void AESND_Reset(void)
do {
_CPU_ISR_Flash(level);
} while(__aesnddspinit);


#if defined(HW_DOL)
u32 i=0;
for(;i<MAX_VOICES;i++)
AR_Free(NULL);
#endif
__aesndinit = 0;
}
_CPU_ISR_Restore(level);
Expand Down
5 changes: 3 additions & 2 deletions libaesnd/dspcode/dspmixer.s
Expand Up @@ -156,8 +156,9 @@ recv_cmd:

cmpi $acc1.m,#0x0100
jeq send_samples

cmpi $acc1.m,#0xdead

lri $acc0.m,#0xdead
cmp
jeq task_terminate

wait_commands:
Expand Down

0 comments on commit a7e4bcd

Please sign in to comment.