tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
Namespaces | Functions
tracktion_Utility.h File Reference

Go to the source code of this file.

Namespaces

namespace  tracktion
 

Functions

template<typename IntType >
constexpr double tracktion::sampleToTime (IntType samplePosition, double sampleRate)
 Converts an integer sample number to a time in seconds.
 
constexpr int64_t tracktion::timeToSample (double timeInSeconds, double sampleRate)
 Converts a time in seconds to a sample number.
 
template<typename IntType >
constexpr juce::Range< doubletracktion::sampleToTime (juce::Range< IntType > sampleRange, double sampleRate)
 Converts an integer sample range to a time range in seconds.
 
constexpr juce::Range< int64_ttracktion::timeToSample (juce::Range< double > timeInSeconds, double sampleRate)
 Converts a time range in seconds to a range of sample numbers.
 
template<typename RangeType >
constexpr juce::Range< int64_ttracktion::timeToSample (RangeType timeInSeconds, double sampleRate)
 Converts a time range in seconds to a range of sample numbers.
 
template<typename NodeType , typename Predicate >
NodeType * tracktion::findNode (NodeGraph &nodeGraph, Predicate pred)
 Attempts to find a Node of a given type with a specified ID.
 
template<typename NodeType >
NodeType * tracktion::findNodeWithID (NodeGraph &nodeGraph, size_t nodeIDToLookFor)
 Attempts to find a Node of a given type with a specified ID.
 
template<typename NodeType >
NodeType * tracktion::findNodeWithIDIfNonZero (NodeGraph *nodeGraph, size_t nodeIDToLookFor)
 Attempts to find a Node of a given type with a specified ID.