From 041382375a641eedd5bf31dcced697e3840299ea Mon Sep 17 00:00:00 2001 From: MetalliC <0vetal0@gmail.com> Date: Sun, 12 Jul 2020 04:14:17 +0300 Subject: [PATCH] fix YMZ280 breakage. on the side note, it is pretty sad to see neither of persons who did PR and other who merged it didn't tested these changes. --- src/devices/sound/ymz280b.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/sound/ymz280b.cpp b/src/devices/sound/ymz280b.cpp index 51851af98d2..c4e1d2d30b5 100644 --- a/src/devices/sound/ymz280b.cpp +++ b/src/devices/sound/ymz280b.cpp @@ -40,8 +40,8 @@ #define MAX_SAMPLE_CHUNK 10000 -static constexpr unsigned FRAC_BITS = 9; -static constexpr unsigned FRAC_ONE = (1 << FRAC_BITS); +#define FRAC_BITS 9 +#define FRAC_ONE (1 << FRAC_BITS) //#define INTERNAL_BUFFER_SIZE (1 << 15) #define INTERNAL_SAMPLE_RATE (m_master_clock * 2.0)