Skip to content

Commit fd20046

Browse files
move scheduling to reset()
1 parent e0e2763 commit fd20046

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DSi_I2S.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ using Platform::LogLevel;
3030
DSi_I2S::DSi_I2S(melonDS::DSi& dsi) : DSi(dsi)
3131
{
3232
DSi.RegisterEventFunc(Event_DSi_I2S, 0, MemberEventFunc(DSi_I2S, Clock));
33-
DSi.ScheduleEvent(Event_DSi_I2S, false, 1024, 0, I2S_Freq_32728Hz);
3433

3534
MicCnt = 0;
3635
SndExCnt = 0;
@@ -53,6 +52,8 @@ void DSi_I2S::Reset()
5352
MicFifo.Clear();
5453

5554
MicBufferLen = 0;
55+
56+
DSi.ScheduleEvent(Event_DSi_I2S, false, 1024, 0, I2S_Freq_32728Hz);
5657
}
5758

5859
void DSi_I2S::DoSavestate(Savestate* file)

0 commit comments

Comments
 (0)