Signalsmith Audio's DSP Library  1.6.1
Useful C++ classes/templates for audio effects
Loading...
Searching...
No Matches
Common

Description

Definitions and helper classes used by the rest of the library.

Files

file  common.h
 

Macros

#define SIGNALSMITH_DSP_VERSION_MAJOR   1
 
#define SIGNALSMITH_DSP_VERSION_MINOR   6
 
#define SIGNALSMITH_DSP_VERSION_PATCH   1
 
#define SIGNALSMITH_DSP_VERSION_STRING   "1.6.1"
 
#define SIGNALSMITH_DSP_VERSION_CHECK(major, minor, patch)
 Check the library version is compatible (semver).
 

Functions

constexpr bool signalsmith::versionCheck (int major, int minor, int patch=0)
 Version compatability check.
 

Macro Definition Documentation

◆ SIGNALSMITH_DSP_VERSION_CHECK

#define SIGNALSMITH_DSP_VERSION_CHECK ( major,
minor,
patch )
Value:
static_assert(::signalsmith::versionCheck(major, minor, patch), "signalsmith library version is " SIGNALSMITH_DSP_VERSION_STRING);
constexpr bool versionCheck(int major, int minor, int patch=0)
Version compatability check.
Definition common.h:32

Check the library version is compatible (semver).

Function Documentation

◆ versionCheck()

bool signalsmith::versionCheck ( int major,
int minor,
int patch = 0 )
constexpr

Version compatability check.

static_assert(signalsmith::version(1, 4, 1), "version check");

... or use the equivalent SIGNALSMITH_DSP_VERSION_CHECK. Major versions are not compatible with each other. Minor and patch versions are backwards-compatible.