diff --git a/src/engine/platform/pcspkr.cpp b/src/engine/platform/pcspkr.cpp index d8c34681e..1ff8ae0c8 100644 --- a/src/engine/platform/pcspkr.cpp +++ b/src/engine/platform/pcspkr.cpp @@ -310,6 +310,13 @@ void* DivPlatformPCSpeaker::getChanState(int ch) { } unsigned char* DivPlatformPCSpeaker::getRegisterPool() { + if (on) { + regPool[0]=freq; + regPool[1]=freq>>8; + } else { + regPool[0]=0; + regPool[1]=0; + } return regPool; }