OSDN Git Service

[VM][AY_3_891X] Fix pop noise when enabling lpf or hpf.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Sun, 25 Aug 2019 08:51:04 +0000 (17:51 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Sun, 25 Aug 2019 08:51:04 +0000 (17:51 +0900)
source/src/vm/ay_3_891x.cpp

index cfd5939..4cadc19 100644 (file)
@@ -231,8 +231,8 @@ void AY_3_891X::mix(int32_t* buffer, int cnt)
                        int32_t* p;
                        int32_t p_h[cnt * 2];
                        int32_t p_l[cnt * 2];
-//                     memset(p_h, 0x00, sizeof(int32_t) * cnt * 2);
-//                     memset(p_l, 0x00, sizeof(int32_t) * cnt * 2);
+                       memset(p_h, 0x00, sizeof(int32_t) * cnt * 2);
+                       memset(p_l, 0x00, sizeof(int32_t) * cnt * 2);
                        p = p_l;
                        opn->Mix(p, cnt);
                        if(use_lpf) {