From cb9dce5084433896fd3016862aff0065659a223a Mon Sep 17 00:00:00 2001 From: Jason Millard Date: Thu, 27 Jun 2024 22:00:41 -0400 Subject: [PATCH] fix build --- src/altsound.cpp | 16 ++++++++-------- src/altsound_processor_base.cpp | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/altsound.cpp b/src/altsound.cpp index 0af9f83..4a8f9dd 100644 --- a/src/altsound.cpp +++ b/src/altsound.cpp @@ -55,8 +55,8 @@ void altsound_preprocess_commands(int cmd) for (int i = 0; i < ALT_MAX_CMDS; ++i) g_cmdData.cmd_buffer[i] = ~0; - *g_cmdData.cmd_counter = 0; - *g_cmdData.cmd_filter = 1; + g_cmdData.cmd_counter = 0; + g_cmdData.cmd_filter = 1; } else if ((g_cmdData.cmd_buffer[3] == 0x55) && (g_cmdData.cmd_buffer[2] == 0xC2)) // DCS software major version number @@ -64,8 +64,8 @@ void altsound_preprocess_commands(int cmd) for (int i = 0; i < ALT_MAX_CMDS; ++i) g_cmdData.cmd_buffer[i] = ~0; - *g_cmdData.cmd_counter = 0; - *g_cmdData.cmd_filter = 1; + g_cmdData.cmd_counter = 0; + g_cmdData.cmd_filter = 1; } else if ((g_cmdData.cmd_buffer[3] == 0x55) && (g_cmdData.cmd_buffer[2] == 0xC3)) // DCS software minor version number @@ -73,8 +73,8 @@ void altsound_preprocess_commands(int cmd) for (int i = 0; i < ALT_MAX_CMDS; ++i) g_cmdData.cmd_buffer[i] = ~0; - *g_cmdData.cmd_counter = 0; - *g_cmdData.cmd_filter = 1; + g_cmdData.cmd_counter = 0; + g_cmdData.cmd_filter = 1; } else if ((g_cmdData.cmd_buffer[3] == 0x55) && (g_cmdData.cmd_buffer[2] >= 0xBA) && (g_cmdData.cmd_buffer[2] <= 0xC1) && (g_cmdData.cmd_buffer[1] == (g_cmdData.cmd_buffer[0] ^ 0xFF))) // mystery command, see http://mjrnet.org/pinscape/dcsref/DCS_format_reference.html#SpecialCommands @@ -82,8 +82,8 @@ void altsound_preprocess_commands(int cmd) for (int i = 0; i < ALT_MAX_CMDS; ++i) g_cmdData.cmd_buffer[i] = ~0; - *g_cmdData.cmd_counter = 0; - *g_cmdData.cmd_filter = 1; + g_cmdData.cmd_counter = 0; + g_cmdData.cmd_filter = 1; } else if (((g_cmdData.cmd_buffer[3] == 0x55) && (g_cmdData.cmd_buffer[2] == 0xAA))) { // change master volume? diff --git a/src/altsound_processor_base.cpp b/src/altsound_processor_base.cpp index 7415f5d..a929de0 100644 --- a/src/altsound_processor_base.cpp +++ b/src/altsound_processor_base.cpp @@ -13,6 +13,7 @@ #include #include +#include extern AltsoundLogger alog; extern StreamArray channel_stream;