Skip to content

Commit

Permalink
clear non-linear mixing after playback halts
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil committed Aug 28, 2015
1 parent f09a681 commit 18fe8fc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Source/APU/DPCM.CPP
Expand Up @@ -2,6 +2,8 @@
** FamiTracker - NES/Famicom sound tracker
** Copyright (C) 2005-2014 Jonathan Liss
**
** 0CC-FamiTracker is (C) 2014-2015 HertzDevil
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
Expand Down Expand Up @@ -54,7 +56,8 @@ void CDPCM::Reset()

// loaded with 0 on power-up.
m_iDeltaCounter = 0;


Mix(0); // // //
EndFrame();
}

Expand Down
3 changes: 2 additions & 1 deletion Source/APU/Noise.cpp
Expand Up @@ -62,7 +62,8 @@ void CNoise::Reset()
Write(1, 0);
Write(2, 0);
Write(3, 0);


Mix(0); // // //
EndFrame();
}

Expand Down
1 change: 1 addition & 0 deletions Source/APU/Square.cpp
Expand Up @@ -75,6 +75,7 @@ void CSquare::Reset()

SweepUpdate(false);

Mix(0); // // //
EndFrame();
}

Expand Down
1 change: 1 addition & 0 deletions Source/APU/Triangle.cpp
Expand Up @@ -51,6 +51,7 @@ void CTriangle::Reset()
Write(2, 0);
Write(3, 0);

Mix(0); // // //
EndFrame();
}

Expand Down

0 comments on commit 18fe8fc

Please sign in to comment.