1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-19 01:04:20 +00:00

Windows: Removed an ancient workaround when getting the input/output latencies of an ASIO device

This commit is contained in:
ed 2019-11-26 18:52:03 +00:00
parent 7ebaac9827
commit 35023af7ff
2 changed files with 25 additions and 2 deletions

View file

@ -4,6 +4,29 @@ JUCE breaking changes
Develop
=======
Change
------
Removed a workaround from the ASIOAudioIODevice::getOutputLatencyInSamples()
and ASIOAudioIODevice::getInputLatencyInSamples() methods which was adding
an arbitrary amount to the reported latencies to compensate for dodgy, old
drivers.
Possible Issues
---------------
Code which relied on these altered values may now behave differently.
Workaround
----------
Update your code to deal with the new, correct values reported from the
drivers directly.
Rationale
---------
JUCE will now return the latency values as reported by the drivers without
adding anything to them. The workaround was for old drivers and the current
drivers should report the correct values without the need for the workaround.
Change
------
The default behaviour of the AU and AUv3 plug-in wrappers is now to call

View file

@ -640,8 +640,8 @@ public:
BigInteger getActiveOutputChannels() const override { return currentChansOut; }
BigInteger getActiveInputChannels() const override { return currentChansIn; }
int getOutputLatencyInSamples() override { return outputLatency + currentBlockSizeSamples / 4; }
int getInputLatencyInSamples() override { return inputLatency + currentBlockSizeSamples / 4; }
int getOutputLatencyInSamples() override { return outputLatency; }
int getInputLatencyInSamples() override { return inputLatency; }
void start (AudioIODeviceCallback* callback) override
{