|
MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API uint64_t MayaFlux::seconds_to_samples | ( | double | seconds | ) |
Converts a time duration in seconds to the equivalent number of audio samples.
| seconds | Time duration in seconds |
This function uses the sample rate from the default engine to calculate how many audio samples correspond to the given time duration in seconds. It's useful for scheduling tasks or processing buffers based on time intervals.
Definition at line 244 of file Chronie.cpp.
References get_context(), MayaFlux::Core::Engine::get_stream_info(), and MayaFlux::Core::GlobalStreamInfo::sample_rate.
Referenced by route_network(), and route_node().
Here is the call graph for this function:
Here is the caller graph for this function: