10#ifndef __AUDACITY_SAMPLE_COUNT__
11#define __AUDACITY_SAMPLE_COUNT__
22 static_assert(
sizeof(
type) == 8,
"Wrong width of sampleCount");
50 size_t as_size_t()
const;
62 {
sampleCount result{ *
this }; ++value;
return result; }
66 {
sampleCount result{ *
this }; --value;
return result; }
bool operator<=(sampleCount a, sampleCount b)
sampleCount operator*(sampleCount a, sampleCount b)
MATH_API size_t limitSampleBufferSize(size_t bufferSize, sampleCount limit)
bool operator>(sampleCount a, sampleCount b)
sampleCount operator+(sampleCount a, sampleCount b)
bool operator!=(sampleCount a, sampleCount b)
sampleCount operator-(sampleCount a, sampleCount b)
bool operator<(sampleCount a, sampleCount b)
bool operator==(sampleCount a, sampleCount b)
sampleCount operator/(sampleCount a, sampleCount b)
sampleCount operator%(sampleCount a, sampleCount b)
bool operator>=(sampleCount a, sampleCount b)
Positions or offsets within audio files need a wide type.
long long as_long_long() const
sampleCount(unsigned long v)
sampleCount(unsigned long long v)
sampleCount(const sampleCount &)=default