Audacity 3.2.0
|
Positions or offsets within audio files need a wide type. More...
#include <SampleCount.h>
Public Types | |
using | type = long long |
Public Member Functions | |
sampleCount () | |
sampleCount (type v) | |
sampleCount (unsigned long long v) | |
sampleCount (int v) | |
sampleCount (unsigned v) | |
sampleCount (long v) | |
sampleCount (unsigned long v) | |
sampleCount (float f) | |
sampleCount (double d) | |
sampleCount (const sampleCount &)=default | |
sampleCount & | operator= (const sampleCount &)=default |
float | as_float () const |
double | as_double () const |
long long | as_long_long () const |
size_t | as_size_t () const |
sampleCount & | operator+= (sampleCount b) |
sampleCount & | operator-= (sampleCount b) |
sampleCount & | operator*= (sampleCount b) |
sampleCount & | operator/= (sampleCount b) |
sampleCount & | operator%= (sampleCount b) |
sampleCount | operator- () const |
sampleCount & | operator++ () |
sampleCount | operator++ (int) |
sampleCount & | operator-- () |
sampleCount | operator-- (int) |
Static Public Member Functions | |
static sampleCount | min () |
static sampleCount | max () |
Private Attributes | |
type | value |
Positions or offsets within audio files need a wide type.
This type disallows implicit interconversions with narrower types
Definition at line 18 of file SampleCount.h.
using sampleCount::type = long long |
Definition at line 21 of file SampleCount.h.
|
inline |
Definition at line 24 of file SampleCount.h.
|
inline |
Definition at line 27 of file SampleCount.h.
|
inline |
Definition at line 28 of file SampleCount.h.
|
inline |
Definition at line 29 of file SampleCount.h.
|
inline |
Definition at line 30 of file SampleCount.h.
|
inline |
Definition at line 31 of file SampleCount.h.
|
inline |
Definition at line 34 of file SampleCount.h.
|
inlineexplicit |
Definition at line 39 of file SampleCount.h.
|
inlineexplicit |
Definition at line 40 of file SampleCount.h.
|
default |
|
inline |
Definition at line 46 of file SampleCount.h.
Referenced by MixerSource::Acquire(), NormalizeBase::AnalyseTrackData(), TruncSilenceBase::Analyze(), Sequence::AppendBlock(), Sequence::AppendSharedBlock(), Sequence::DoAppend(), AdjustClipBorder::Drag(), anonymous_namespace{ScrubState.cpp}::ScrubQueue::Get(), anonymous_namespace{WaveTrack.cpp}::GetRenderedCopy(), Sequence::GetRMS(), anonymous_namespace{ClipSegment.cpp}::GetTotalNumSamplesToProduce(), Sequence::HandleXMLEndTag(), AUPImportFileHandle::Import(), anonymous_namespace{ScrubState.cpp}::ScrubQueue::Data::Init(), Sequence::InsertSilence(), PhaserBase::Instance::InstanceProcess(), WideSampleSequence::LongSamplesToTime(), StretchingSequence::MutableGet(), VoiceKey::OffForward(), FormatMenuTable::OnFormatChange(), anonymous_namespace{TransportMenus.cpp}::OnPunchAndRoll(), WaveClip::Paste(), Sequence::Paste(), ToneGenBase::ProcessBlock(), ClickRemovalBase::ProcessOne(), FindClippingBase::ProcessOne(), StereoToMono::ProcessOne(), ScrubbingPlaybackPolicy::RepositionPlayback(), WaveClip::SetRate(), WaveClipUtilities::SharesBoundaryWithNextClip(), VoiceKey::TestDirectionChanges(), VoiceKey::TestEnergy(), VoiceKey::TestSignChanges(), WaveClip::UpdateEnvelopeTrackLen(), and anonymous_namespace{ParsedNumericConverterFormatter.cpp}::ParsedNumericConverterFormatter::ValueToString().
|
inline |
Definition at line 45 of file SampleCount.h.
Referenced by SBSMSBase::Process(), Fade::ProcessBlock(), and resampleCB().
|
inline |
Definition at line 48 of file SampleCount.h.
Referenced by AUPImportFileHandle::AddSamples(), SpecCache::CalculateOneSpectrum(), CrossFader::CrossFadeMix(), Sequence::DebugPrintf(), BrushHandle::Drag(), SilenceSegment::GetFloats(), ScrubbingPlaybackPolicy::GetPlaybackSlice(), operator<(), operator==(), anonymous_namespace{BrushHandle.cpp}::PositionToLongSample(), NyquistBase::ProcessOne(), WaveClip::Resample(), anonymous_namespace{ParsedNumericConverterFormatter.cpp}::ParsedNumericConverterFormatter::ValueToString(), and Sequence::WriteXML().
size_t sampleCount::as_size_t | ( | ) | const |
Definition at line 16 of file SampleCount.cpp.
References value.
Referenced by AUPImportFileHandle::AddSamples(), TruncSilenceBase::DoRemoval(), anonymous_namespace{ProjectAudioManager.cpp}::CutPreviewPlaybackPolicy::GetPlaybackSlice(), FloatVectorClip::GetSampleView(), and Sequence::InsertSilence().
|
inlinestatic |
Definition at line 69 of file SampleCount.h.
|
inlinestatic |
Definition at line 68 of file SampleCount.h.
References min().
|
inline |
Definition at line 56 of file SampleCount.h.
References value.
|
inline |
Definition at line 54 of file SampleCount.h.
References value.
|
inline |
Definition at line 60 of file SampleCount.h.
|
inline |
Definition at line 61 of file SampleCount.h.
|
inline |
Definition at line 52 of file SampleCount.h.
References value.
|
inline |
Definition at line 58 of file SampleCount.h.
|
inline |
Definition at line 64 of file SampleCount.h.
|
inline |
Definition at line 65 of file SampleCount.h.
|
inline |
Definition at line 53 of file SampleCount.h.
References value.
|
inline |
Definition at line 55 of file SampleCount.h.
References value.
|
default |
|
private |
Definition at line 72 of file SampleCount.h.
Referenced by as_size_t(), operator%=(), operator*=(), operator+=(), operator-=(), and operator/=().