Audacity 3.2.0
Functions
anonymous_namespace{ExportPluginHelpers.cpp} Namespace Reference

Functions

double EvalExportProgress (Mixer &mixer, double t0, double t1)
 

Function Documentation

◆ EvalExportProgress()

double anonymous_namespace{ExportPluginHelpers.cpp}::EvalExportProgress ( Mixer mixer,
double  t0,
double  t1 
)

Definition at line 50 of file ExportPluginHelpers.cpp.

51 {
52 const auto duration = t1 - t0;
53 if(duration > 0)
54 return std::clamp(mixer.MixGetCurrentTime() - t0, .0, duration) / duration;
55 return .0;
56 }
double MixGetCurrentTime()
Current time in seconds (unwarped, i.e. always between startTime and stopTime)
Definition: Mix.cpp:393

References Mixer::MixGetCurrentTime().

Referenced by ExportPluginHelpers::UpdateProgress().

Here is the call graph for this function:
Here is the caller graph for this function: