Audacity 3.2.0
|
#include <FloatVectorClip.h>
Public Member Functions | |
FloatVectorClip (int sampleRate, const std::vector< std::vector< float > > &audio) | |
FloatVectorClip (int sampleRate, const std::vector< float > &audio, size_t numChannels) | |
AudioSegmentSampleView | GetSampleView (size_t iChannel, sampleCount start, size_t len, bool mayThrow) const override |
sampleCount | GetVisibleSampleCount () const override |
size_t | NChannels () const override |
int | GetRate () const override |
double | GetPlayStartTime () const override |
double | GetPlayEndTime () const override |
sampleCount | TimeToSamples (double time) const override |
double | GetStretchRatio () const override |
int | GetCentShift () const override |
Observer::Subscription | SubscribeToCentShiftChange (std::function< void(int)> cb) const override |
PitchAndSpeedPreset | GetPitchAndSpeedPreset () const override |
Observer::Subscription | SubscribeToPitchAndSpeedPresetChange (std::function< void(PitchAndSpeedPreset)> cb) const override |
Public Member Functions inherited from ClipInterface | |
~ClipInterface () override | |
virtual AudioSegmentSampleView | GetSampleView (size_t iChannel, sampleCount start, size_t length, bool mayThrow=true) const =0 |
virtual size_t | NChannels () const =0 |
virtual int | GetCentShift () const =0 |
virtual Observer::Subscription | SubscribeToCentShiftChange (std::function< void(int)> cb) const =0 |
virtual PitchAndSpeedPreset | GetPitchAndSpeedPreset () const =0 |
virtual Observer::Subscription | SubscribeToPitchAndSpeedPresetChange (std::function< void(PitchAndSpeedPreset)> cb) const =0 |
Public Member Functions inherited from ClipTimes | |
virtual | ~ClipTimes () |
virtual sampleCount | GetVisibleSampleCount () const =0 |
virtual int | GetRate () const =0 |
virtual double | GetPlayStartTime () const =0 |
virtual double | GetPlayEndTime () const =0 |
virtual sampleCount | TimeToSamples (double time) const =0 |
virtual double | GetStretchRatio () const =0 |
Public Attributes | |
double | stretchRatio = 1. |
double | playStartTime = 0. |
Private Member Functions | |
double | GetPlayDuration () const |
Private Attributes | |
const int | mSampleRate |
const std::vector< std::vector< float > > | mAudio |
Audacity: A Digital Audio Editor
Matthieu Hodgkinson
Definition at line 15 of file FloatVectorClip.h.
FloatVectorClip::FloatVectorClip | ( | int | sampleRate, |
const std::vector< std::vector< float > > & | audio | ||
) |
Audacity: A Digital Audio Editor
Matthieu Hodgkinson
Definition at line 15 of file FloatVectorClip.cpp.
FloatVectorClip::FloatVectorClip | ( | int | sampleRate, |
const std::vector< float > & | audio, | ||
size_t | numChannels | ||
) |
Definition at line 34 of file FloatVectorClip.cpp.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
private |
Definition at line 71 of file FloatVectorClip.cpp.
References mAudio, mSampleRate, and stretchRatio.
Referenced by GetPlayEndTime().
|
inlineoverridevirtual |
Implements ClipTimes.
Definition at line 40 of file FloatVectorClip.h.
References GetPlayDuration(), and playStartTime.
|
inlineoverridevirtual |
|
overridevirtual |
Implements ClipTimes.
Definition at line 61 of file FloatVectorClip.cpp.
References mSampleRate.
Referenced by TimeToSamples().
|
overridevirtual |
Implements ClipInterface.
Definition at line 40 of file FloatVectorClip.cpp.
References sampleCount::as_size_t(), anonymous_namespace{StretchingSequenceIntegrationTest.cpp}::iChannel, and mAudio.
|
inlineoverridevirtual |
|
overridevirtual |
The number of raw audio samples not hidden by trimming.
Implements ClipTimes.
Definition at line 51 of file FloatVectorClip.cpp.
References mAudio.
|
overridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
overridevirtual |
Implements ClipTimes.
Definition at line 66 of file FloatVectorClip.cpp.
References GetRate().
|
private |
Definition at line 82 of file FloatVectorClip.h.
Referenced by GetPlayDuration(), GetSampleView(), GetVisibleSampleCount(), and NChannels().
|
private |
Definition at line 81 of file FloatVectorClip.h.
Referenced by GetPlayDuration(), and GetRate().
double FloatVectorClip::playStartTime = 0. |
Definition at line 76 of file FloatVectorClip.h.
Referenced by GetPlayEndTime(), and GetPlayStartTime().
double FloatVectorClip::stretchRatio = 1. |
Definition at line 75 of file FloatVectorClip.h.
Referenced by GetPlayDuration(), and GetStretchRatio().