File tree Expand file tree Collapse file tree
Processors/ProcessorGraph Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,6 +83,11 @@ namespace CoreServices
8383 return getProcessorGraph ()->getGlobalTimestamp (false );
8484 }
8585
86+ juce::uint32 getGlobalTimestampSourceFullId ()
87+ {
88+ return getProcessorGraph ()->getGlobalTimestampSourceFullId ();
89+ }
90+
8691 juce::int64 getSoftwareTimestamp ()
8792 {
8893 return getProcessorGraph ()->getGlobalTimestamp (true );
Original file line number Diff line number Diff line change @@ -64,10 +64,14 @@ no hardware timestamping is present*/
6464PLUGIN_API juce::int64 getGlobalTimestamp ();
6565
6666/* * Gets the sample rate selected on the MessageCenter interface
67- Defaults to the dample rate of the first hardware source or
67+ Defaults to the dsmple rate of the first hardware source or
6868the software high resolution timer if no hardware source is present*/
6969PLUGIN_API float getGlobalSampleRate ();
7070
71+ /* * Gets the full id of the node generating global timestamps.
72+ Returns 0 if timestamps are provided by the software high resolution timer */
73+ PLUGIN_API uint32 getGlobalTimestampSourceFullId ();
74+
7175/* * Gets the software timestamp based on a high resolution timer aligned to the start of each processing block */
7276PLUGIN_API juce::int64 getSoftwareTimestamp ();
7377
Original file line number Diff line number Diff line change @@ -778,6 +778,14 @@ float ProcessorGraph::getGlobalSampleRate(bool softwareOnly) const
778778 }
779779}
780780
781+ uint32 ProcessorGraph::getGlobalTimestampSourceFullId () const
782+ {
783+ if (!m_timestampSource)
784+ return 0 ;
785+
786+ return GenericProcessor::getProcessorFullId (m_timestampSource->getNodeId (), m_timestampSourceSubIdx);
787+ }
788+
781789void ProcessorGraph::setTimestampWindow (TimestampSourceSelectionWindow* window)
782790{
783791 m_timestampWindow = window;
Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ class ProcessorGraph : public AudioProcessorGraph
9797
9898 float getGlobalSampleRate (bool softwareOnly) const ;
9999
100+ uint32 getGlobalTimestampSourceFullId () const ;
101+
100102 void setTimestampWindow (TimestampSourceSelectionWindow* window);
101103
102104private:
You can’t perform that action at this time.
0 commit comments