This commit is contained in:
StapleButter
2017-04-09 03:35:32 +02:00
parent 3f3b2977d7
commit bc70f00372
4 changed files with 330 additions and 63 deletions

View File

@ -131,13 +131,15 @@ void Channel::Reset()
TimerReload = 0;
LoopPos = 0;
Length = 0;
Timer = 0;
}
void Channel::Start()
{
Timer = TimerReload;
if (((Cnt >> 29) & 0x3) == 1)
if (((Cnt >> 29) & 0x3) == 3)
Pos = -1;
else
Pos = -3;
@ -338,6 +340,8 @@ void CaptureUnit::Reset()
DstAddr = 0;
TimerReload = 0;
Length = 0;
Timer = 0;
}
void CaptureUnit::Run(s32 sample)