From: <sv...@op...> - 2024-12-01 00:51:27
|
Author: sagamusix Date: Sun Dec 1 01:51:15 2024 New Revision: 22372 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22372 Log: [Fix] Compile fix for compilers without std::span. Modified: trunk/OpenMPT/soundlib/MIDIMacroParser.cpp trunk/OpenMPT/soundlib/MIDIMacroParser.h Modified: trunk/OpenMPT/soundlib/MIDIMacroParser.cpp ============================================================================== --- trunk/OpenMPT/soundlib/MIDIMacroParser.cpp Sun Dec 1 01:40:19 2024 (r22371) +++ trunk/OpenMPT/soundlib/MIDIMacroParser.cpp Sun Dec 1 01:51:15 2024 (r22372) @@ -91,7 +91,7 @@ } -MIDIMacroParser::MIDIMacroParser(const CSoundFile &sndFile, PlayState *playState, CHANNELINDEX nChn, bool isSmooth, const mpt::span<const char> macro, const mpt::span<uint8> out, uint8 param, PLUGINDEX plugin) +MIDIMacroParser::MIDIMacroParser(const CSoundFile &sndFile, PlayState *playState, CHANNELINDEX nChn, bool isSmooth, const mpt::span<const char> macro, mpt::span<uint8> out, uint8 param, PLUGINDEX plugin) : m_data{out} { // Need to be able to add potentially missing F7 (End Of SysEx) Modified: trunk/OpenMPT/soundlib/MIDIMacroParser.h ============================================================================== --- trunk/OpenMPT/soundlib/MIDIMacroParser.h Sun Dec 1 01:40:19 2024 (r22371) +++ trunk/OpenMPT/soundlib/MIDIMacroParser.h Sun Dec 1 01:51:15 2024 (r22372) @@ -23,7 +23,7 @@ { public: // Parse the given MIDI macro into the out span. out needs to be at least one byte longer than the input string to support the longest possible macro translation. - MIDIMacroParser(const CSoundFile &sndFile, PlayState *playState, CHANNELINDEX nChn, bool isSmooth, const mpt::span<const char> macro, const mpt::span<uint8> out, uint8 param = 0, PLUGINDEX plugin = 0); + MIDIMacroParser(const CSoundFile &sndFile, PlayState *playState, CHANNELINDEX nChn, bool isSmooth, const mpt::span<const char> macro, mpt::span<uint8> out, uint8 param = 0, PLUGINDEX plugin = 0); // Split a raw MIDI dump into multiple messages. Note that in order to support running status, NextMessage() may temporarily alter the provided data. // When the MIDIMacroParser destructor has run, the data will be back in its original state. MIDIMacroParser(mpt::span<uint8> data) : m_data{data} {} |