71 [[nodiscard]]
constexpr bool isValid() const noexcept
73 return sampleRate > 0.0 && sampleRate <= std::numeric_limits<double>::max()
Main namespace for the DSPark framework.
Describes the audio environment for a DSP processor.
constexpr bool isValid() const noexcept
Checks if the specification contains valid, processable parameters.
constexpr bool operator==(const AudioSpec &) const noexcept=default
Default member-wise equality (C++20).
int numChannels
Number of audio channels (e.g., 1 = mono, 2 = stereo).
int maxBlockSize
Maximum number of samples per processing block.
double sampleRate
Sample rate in Hz.