1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

AudioPlayHead: Move HostTimeNs out of AudioProcessor, to consolidate timing information

This commit is contained in:
reuk 2022-06-13 20:25:18 +01:00
parent 8fbd99c424
commit 752c913cd2
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
13 changed files with 107 additions and 122 deletions

View file

@ -4,6 +4,28 @@ JUCE breaking changes
develop
=======
Change
------
AudioProcessor::getHostTimeNs() and AudioProcessor::setHostTimeNanos() have
been removed.
Possible Issues
---------------
Code that used these functions will no longer compile.
Workaround
----------
Set and get the system time corresponding to the current audio callback using
the new functions AudioPlayHead::PositionInfo::getHostTimeNs() and
AudioPlayHead::PositionInfo::setHostTimeNs().
Rationale
---------
This change consolidates callback-related timing information into the
PositionInfo type, improving the consistency of the AudioProcessor and
AudioPlayHead APIs.
Change
------
AudioPlayHead::getCurrentPosition() has been deprecated and replaced with