Skip to content

Commit

Permalink
aesnd: fix AESND_Reset. free voices & fix cmpi of unsigned short.
Browse files Browse the repository at this point in the history
  • Loading branch information
DacoTaco committed Mar 13, 2023
1 parent 81151f7 commit 1dfc65a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions libaesnd/aesndlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ void AESND_Init(void)

void AESND_Reset(void)
{
u32 level;
u32 i, level;

_CPU_ISR_Disable(level);
if(__aesndinit) {
Expand All @@ -485,7 +485,11 @@ void AESND_Reset(void)
do {
_CPU_ISR_Flash(level);
} while(__aesnddspinit);


#if defined(HW_DOL)
for(i=0;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
Original file line number Diff line number Diff line change
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 1dfc65a

Please sign in to comment.