From: <sv...@op...> - 2024-10-18 20:11:42
|
Author: sagamusix Date: Fri Oct 18 22:11:30 2024 New Revision: 21855 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21855 Log: [Mod] Increase number of maximum pattern channels from 127 to 192. Now that the only fixed-size structure based on MAX_BASECHANNELS ins a bitset in CSoundFile, the memory overhead does not matter anymore. The only formats that could make use of the extra channels should also not support NNAs, so the low number of remaining NNA channels should not matter. Modified: trunk/OpenMPT/soundlib/Snd_defs.h Modified: trunk/OpenMPT/soundlib/Snd_defs.h ============================================================================== --- trunk/OpenMPT/soundlib/Snd_defs.h Fri Oct 18 21:37:05 2024 (r21854) +++ trunk/OpenMPT/soundlib/Snd_defs.h Fri Oct 18 22:11:30 2024 (r21855) @@ -52,7 +52,7 @@ inline constexpr SEQUENCEINDEX MAX_SEQUENCES = 50; -inline constexpr CHANNELINDEX MAX_BASECHANNELS = 127; // Maximum pattern channels. +inline constexpr CHANNELINDEX MAX_BASECHANNELS = 192; // Maximum pattern channels. inline constexpr CHANNELINDEX MAX_CHANNELS = 256; // Maximum number of mixing channels. enum { FREQ_FRACBITS = 4 }; // Number of fractional bits in return value of CSoundFile::GetFreqFromPeriod() |