MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ position_to_time()

double MayaFlux::Kakshya::SoundStreamContainer::position_to_time ( uint64_t  position) const
overridevirtual

Convert from position units (e.g., frame/sample index) to time (seconds).

Parameters
positionPosition in primary dimension
Returns
Corresponding time value

Enables precise mapping between temporal and positional domains.

Implements MayaFlux::Kakshya::StreamContainer.

Definition at line 479 of file SoundStreamContainer.cpp.

480{
482}
double position_to_time(uint64_t position, double sample_rate)
Convert position (samples/frames) to time (seconds) given a sample rate.

References m_sample_rate, and MayaFlux::Kakshya::position_to_time().

Referenced by MayaFlux::Kakshya::SoundFileContainer::get_duration_seconds().

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