Signalsmith Audio's DSP Library  1.6.0
Useful C++ classes/templates for audio effects
Files | Macros | Functions
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   0
 
#define SIGNALSMITH_DSP_VERSION_STRING   "1.6.0"
 
#define SIGNALSMITH_DSP_VERSION_CHECK(major, minor, patch)    static_assert(::signalsmith::versionCheck(major, minor, patch), "signalsmith library version is " SIGNALSMITH_DSP_VERSION_STRING);
 Check the library version is compatible (semver). More...
 

Functions

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

Macro Definition Documentation

◆ SIGNALSMITH_DSP_VERSION_CHECK

#define SIGNALSMITH_DSP_VERSION_CHECK (   major,
  minor,
  patch 
)     static_assert(::signalsmith::versionCheck(major, minor, patch), "signalsmith library version is " SIGNALSMITH_DSP_VERSION_STRING);

Check the library version is compatible (semver).

Function Documentation

◆ versionCheck()

constexpr 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.