diff --git a/soundlib/Sndfile.h b/soundlib/Sndfile.h index 8c928d5371f..3cc25cefe6a 100644 --- a/soundlib/Sndfile.h +++ b/soundlib/Sndfile.h @@ -509,7 +509,7 @@ class CSoundFile ResamplingMode m_nResampling; // Resampling mode (if overriding the globally set resampling) int32 m_nRepeatCount = 0; // -1 means repeat infinitely. ORDERINDEX m_nMaxOrderPosition; - ModChannelSettings ChnSettings[MAX_BASECHANNELS]; // Initial channels settings + std::array ChnSettings; // Initial channels settings CPatternContainer Patterns; ModSequenceSet Order; // Pattern sequences (order lists) protected: @@ -589,8 +589,8 @@ class CSoundFile bool m_bPositionChanged = true; // Report to plugins that we jumped around in the module public: - CHANNELINDEX ChnMix[MAX_CHANNELS]; // Index of channels in Chn to be actually mixed - ModChannel Chn[MAX_CHANNELS]; // Mixing channels... First m_nChannels channels are master channels (i.e. they are never NNA channels)! + std::array ChnMix; // Index of channels in Chn to be actually mixed + std::array Chn; // Mixing channels... First m_nChannels channels are master channels (i.e. they are never NNA channels)! struct MIDIMacroEvaluationResults {