VIC-20: Make noise state consistent across inits

This commit is contained in:
Natt Akuma 2022-04-06 19:11:45 +07:00
parent 9d653b58b3
commit ba8ee96069
3 changed files with 16 additions and 12 deletions

View file

@ -282,6 +282,9 @@ void DivPlatformVIC20::reset() {
vic_sound_machine_init(vic,rate,chipClock);
hasWaveWrite=false;
rWrite(14,15);
// hack: starting noise channel right away after this would result in a dead
// channel as the LFSR state is 0, so clock it a bit
vic_sound_clock(vic,4);
}
bool DivPlatformVIC20::isStereo() {