From: <sv...@op...> - 2024-11-25 22:36:23
|
Author: sagamusix Date: Mon Nov 25 23:36:11 2024 New Revision: 22313 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22313 Log: [Ref] Small cleanup. Modified: trunk/OpenMPT/soundlib/MODTools.cpp trunk/OpenMPT/soundlib/Snd_defs.h Modified: trunk/OpenMPT/soundlib/MODTools.cpp ============================================================================== --- trunk/OpenMPT/soundlib/MODTools.cpp Mon Nov 25 21:50:40 2024 (r22312) +++ trunk/OpenMPT/soundlib/MODTools.cpp Mon Nov 25 23:36:11 2024 (r22313) @@ -288,8 +288,8 @@ uint32 MODSampleHeader::GetInvalidByteScore() const { return ((volume > 64) ? 1 : 0) - + ((finetune > 15) ? 1 : 0) - + ((loopStart > length * 2) ? 1 : 0); + + ((finetune > 15) ? 1 : 0) + + ((loopStart > length * 2) ? 1 : 0); } @@ -330,7 +330,7 @@ } -// Check if a name is a valid null - terminated ASCII string with no garbage after the null terminator, or if it's empty +// Check if a name is a valid null-terminated ASCII string with no garbage after the null terminator, or if it's empty NameClassification ClassifyName(const mpt::span<const char> name) noexcept { bool foundNull = false, foundNormal = false; Modified: trunk/OpenMPT/soundlib/Snd_defs.h ============================================================================== --- trunk/OpenMPT/soundlib/Snd_defs.h Mon Nov 25 21:50:40 2024 (r22312) +++ trunk/OpenMPT/soundlib/Snd_defs.h Mon Nov 25 23:36:11 2024 (r22313) @@ -278,14 +278,13 @@ SONG_FIRSTTICK = 0x20, // Is set when the current tick is the first tick of the row SONG_MPTFILTERMODE = 0x40, // Local filter mode (reset filter on each note) SONG_SURROUNDPAN = 0x80, // Pan in the rear channels - SONG_POSJUMP = 0x100, // Position jump encountered (internal flag, do not touch) - SONG_BREAKTOROW = 0x200, // Break to row command encountered (internal flag, do not touch) + SONG_POSJUMP = 0x100, // Position jump encountered + SONG_BREAKTOROW = 0x200, // Break to row command encountered SONG_POSITIONCHANGED = 0x400, // Report to plugins that we jumped around in the module }; DECLARE_FLAGSET(PlayFlags) -// Module flags - contains both song configuration and playback state... Use SONG_FILE_FLAGS and SONG_PLAY_FLAGS distinguish between the two. enum SongFlags { SONG_FASTPORTAS = 0x01, // Portamentos are executed on every tick |