From: <sv...@op...> - 2024-06-22 18:41:34
|
Author: sagamusix Date: Sat Jun 22 20:41:21 2024 New Revision: 21048 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21048 Log: [Ref] Small cleanup. Modified: trunk/OpenMPT/soundlib/Sndfile.cpp trunk/OpenMPT/soundlib/Sndfile.h Modified: trunk/OpenMPT/soundlib/Sndfile.cpp ============================================================================== --- trunk/OpenMPT/soundlib/Sndfile.cpp Sat Jun 22 10:48:49 2024 (r21047) +++ trunk/OpenMPT/soundlib/Sndfile.cpp Sat Jun 22 20:41:21 2024 (r21048) @@ -2080,11 +2080,12 @@ #endif // MPT_EXTERNAL_SAMPLES -// Set up channel panning and volume suitable for MOD + similar files. If the current mod type is not MOD, bForceSetup has to be set to true. -void CSoundFile::SetupMODPanning(bool bForceSetup) +// Set up channel panning suitable for MOD + similar files. If the current mod type is not MOD, forceSetup has to be set to true for this function to take effect. +void CSoundFile::SetupMODPanning(bool forceSetup) { // Setup LRRL panning, max channel volume - if(!(GetType() & MOD_TYPE_MOD) && bForceSetup == false) return; + if(!(GetType() & MOD_TYPE_MOD) && !forceSetup) + return; for(CHANNELINDEX chn = 0; chn < GetNumChannels(); chn++) { Modified: trunk/OpenMPT/soundlib/Sndfile.h ============================================================================== --- trunk/OpenMPT/soundlib/Sndfile.h Sat Jun 22 10:48:49 2024 (r21047) +++ trunk/OpenMPT/soundlib/Sndfile.h Sat Jun 22 20:41:21 2024 (r21048) @@ -930,7 +930,7 @@ // Converts 4 bytes formatted like SoundTracker/NoiseTracker/ProTracker pattern data by converting the period to a note and filling the instrument number, and returns the effect command and parameter bytes. static std::pair<uint8, uint8> ReadMODPatternEntry(const std::array<uint8, 4> data, ModCommand &m); - void SetupMODPanning(bool bForceSetup = false); // Setup LRRL panning, max channel volume + void SetupMODPanning(bool forceSetup = false); // Setup LRRL panning public: // Real-time sound functions |