Remove TENACITY_MODLEVEL

TENACITY_MODLEVEL is the 4th version number in our version. However, we
don't intend to use anything beyond 3 digits in our version numbers, so
remove this version number and replace any use of it with 0.

Signed-off-by: Avery King <avery98@pm.me>
This commit is contained in:
Avery King
2024-04-28 13:35:45 -07:00
parent a19e5fbe34
commit 63e762b700
3 changed files with 3 additions and 7 deletions

View File

@@ -303,9 +303,6 @@ endif()
message( STATUS " Current Commit: ${GIT_DESCRIBE}" )
message( STATUS )
# Not sure what this even does
set( TENACITY_MODLEVEL 0 )
# Organize subdirectories/targets into folders for the IDEs
set_property( GLOBAL PROPERTY USE_FOLDERS ON )
@@ -470,7 +467,7 @@ set( APP_ID "org.tenacityaudio.Tenacity" )
# Create short and full version strings
set( TENACITY_DIST_VERSION ${TENACITY_VERSION}.${TENACITY_RELEASE}.${TENACITY_REVISION} )
set( TENACITY_INFO_VERSION ${TENACITY_VERSION}.${TENACITY_RELEASE}.${TENACITY_REVISION}.${TENACITY_MODLEVEL} )
set( TENACITY_INFO_VERSION ${TENACITY_VERSION}.${TENACITY_RELEASE}.${TENACITY_REVISION} )
# Build our custom libraries as either static or shared
# NOTE: this does not affect external libraries (e.g., wxWidgets).

View File

@@ -50,7 +50,7 @@ bool ProjectFormatVersion::IsValid() const noexcept
}
const ProjectFormatVersion SupportedProjectFormatVersion = {
TENACITY_VERSION, TENACITY_RELEASE, TENACITY_REVISION, TENACITY_MODLEVEL, true
TENACITY_VERSION, TENACITY_RELEASE, TENACITY_REVISION, 0, true
};
const ProjectFormatVersion SupportedTenacityProjectFormatVersion = { 3, 1, 0, 0, false };

View File

@@ -974,8 +974,7 @@ intptr_t VSTEffect::AudioMaster(AEffect * effect,
case audioMasterGetVendorVersion:
return (intptr_t) (TENACITY_VERSION << 24 |
TENACITY_RELEASE << 16 |
TENACITY_REVISION << 8 |
TENACITY_MODLEVEL);
TENACITY_REVISION << 8);
// Some (older) effects depend on an effIdle call when requested. An
// example is the Antress Modern plugins which uses the call to update