Audacity 3.2.0
Classes | Public Member Functions | Private Attributes | Friends | List of all members
Mixer::WarpOptions Class Reference

#include <Mix.h>

Collaboration diagram for Mixer::WarpOptions:
[legend]

Classes

struct  DefaultWarp
 Hook function for default time warp. More...
 

Public Member Functions

 WarpOptions (const TrackList &list)
 Construct using the default warp function. More...
 
 WarpOptions (const BoundedEnvelope *e)
 Construct with an explicit warp. More...
 
 WarpOptions (double min, double max, double initial=1.0)
 Construct with no time warp. More...
 

Private Attributes

const BoundedEnvelopeenvelope = nullptr
 
double minSpeed
 
double maxSpeed
 
double initialSpeed { 1.0 }
 

Friends

class Mixer
 

Detailed Description

Definition at line 54 of file Mix.h.

Constructor & Destructor Documentation

◆ WarpOptions() [1/3]

Mixer::WarpOptions::WarpOptions ( const TrackList list)
explicit

Construct using the default warp function.

Definition at line 37 of file Mix.cpp.

39{
40}
static result_type Call(Arguments &&...arguments)
Null check of the installed function is done for you.
double minSpeed
Definition: Mix.h:74
const BoundedEnvelope * envelope
Definition: Mix.h:73
double maxSpeed
Definition: Mix.h:74

◆ WarpOptions() [2/3]

Mixer::WarpOptions::WarpOptions ( const BoundedEnvelope e)
explicit

Construct with an explicit warp.

Definition at line 42 of file Mix.cpp.

43 : envelope(e), minSpeed(0.0), maxSpeed(0.0)
44 {}

◆ WarpOptions() [3/3]

Mixer::WarpOptions::WarpOptions ( double  min,
double  max,
double  initial = 1.0 
)

Construct with no time warp.

Definition at line 46 of file Mix.cpp.

47 : minSpeed{min}, maxSpeed{max}, initialSpeed{initial}
48{
49 if (minSpeed < 0)
50 {
51 wxASSERT(false);
52 minSpeed = 0;
53 }
54 if (maxSpeed < 0)
55 {
56 wxASSERT(false);
57 maxSpeed = 0;
58 }
59 if (minSpeed > maxSpeed)
60 {
61 wxASSERT(false);
63 }
64}
int min(int a, int b)
double initialSpeed
Definition: Mix.h:75
void swap(std::unique_ptr< Alg_seq > &a, std::unique_ptr< Alg_seq > &b)
Definition: NoteTrack.cpp:753

References maxSpeed, minSpeed, and anonymous_namespace{NoteTrack.cpp}::swap().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ Mixer

friend class Mixer
friend

Definition at line 72 of file Mix.h.

Member Data Documentation

◆ envelope

const BoundedEnvelope* Mixer::WarpOptions::envelope = nullptr
private

Definition at line 73 of file Mix.h.

Referenced by Mixer::ResampleParameters::ResampleParameters().

◆ initialSpeed

double Mixer::WarpOptions::initialSpeed { 1.0 }
private

Definition at line 75 of file Mix.h.

◆ maxSpeed

double Mixer::WarpOptions::maxSpeed
private

Definition at line 74 of file Mix.h.

Referenced by Mixer::ResampleParameters::ResampleParameters(), and WarpOptions().

◆ minSpeed

double Mixer::WarpOptions::minSpeed
private

Definition at line 74 of file Mix.h.

Referenced by Mixer::ResampleParameters::ResampleParameters(), and WarpOptions().


The documentation for this class was generated from the following files: