• R/O
  • HTTP
  • SSH
  • HTTPS

common_source_project-fm7: Commit

Common Source Code Project for Qt (a.k.a for FM-7).


Commit MetaInfo

Revision797ee9c1ac784fc06e483bf0923120b91b658e39 (tree)
Time2018-06-15 03:53:02
AuthorK.Ohta <whatisthis.sowhat@gmai...>
CommiterK.Ohta

Log Message

[FMGEN][PSG] Fix weird noise generation for SSG/PSG.

Change Summary

Incremental Difference

--- a/source/src/vm/fmgen/psg.cpp
+++ b/source/src/vm/fmgen/psg.cpp
@@ -89,7 +89,7 @@ void PSG::MakeNoiseTable()
8989 for (int j=0; j<32; j++)
9090 {
9191 n = n * 2 + (noise & 1);
92- noise = (noise >> 1) | (((noise << 14) ^ (noise << 16)) & 0x10000);
92+ noise = (noise >> 1) | (((noise << 14) ^ ((noise & 0x0000ffff) << 16)) & 0x10000);
9393 }
9494 noisetable[i] = n;
9595 }
Show on old repository browser