From b21aecf285277e9ec04873f6649317d8dd498795 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 7 Mar 2022 23:38:36 -0500 Subject: [PATCH] WonderSwan: make macOS happy --- src/engine/platform/sound/swan.cpp | 3 --- src/engine/platform/sound/swan.h | 1 - 2 files changed, 4 deletions(-) diff --git a/src/engine/platform/sound/swan.cpp b/src/engine/platform/sound/swan.cpp index 60052f617..685fefe94 100644 --- a/src/engine/platform/sound/swan.cpp +++ b/src/engine/platform/sound/swan.cpp @@ -85,7 +85,6 @@ void WSwan::SoundUpdate(uint32_t v30mz_timestamp) else if(ch == 2 && (control & 0x40) && sweep_value) // Sweep { uint32_t tmp_pt = 2048 - period[ch]; - uint32_t meow_timestamp = v30mz_timestamp - run_time; uint32_t tmp_run_time = run_time; while(tmp_run_time) @@ -107,7 +106,6 @@ void WSwan::SoundUpdate(uint32_t v30mz_timestamp) } } - meow_timestamp += sub_run_time; if(tmp_pt > 4) { period_counter[ch] -= sub_run_time; @@ -116,7 +114,6 @@ void WSwan::SoundUpdate(uint32_t v30mz_timestamp) sample_pos[ch] = (sample_pos[ch] + 1) & 0x1F; MK_SAMPLE_CACHE; - SYNCSAMPLE(meow_timestamp + period_counter[ch]); period_counter[ch] += tmp_pt; } } diff --git a/src/engine/platform/sound/swan.h b/src/engine/platform/sound/swan.h index b1b0af740..a1d01fa54 100644 --- a/src/engine/platform/sound/swan.h +++ b/src/engine/platform/sound/swan.h @@ -76,7 +76,6 @@ private: uint32_t last_ts; uint8_t wsRAM[64]; - int16_t sBuf[2]; }; #endif