mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-06 04:00:08 +00:00
WASAPI latency calculation fix.
This commit is contained in:
parent
bc3b861954
commit
90186efdb9
1 changed files with 2 additions and 2 deletions
|
|
@ -746,7 +746,7 @@ public:
|
|||
|
||||
if (inputDevice != nullptr && inputDevice->client != nullptr)
|
||||
{
|
||||
latencyIn = (int) (inputDevice->latencySamples + inputDevice->actualBufferSize + inputDevice->minBufferSize);
|
||||
latencyIn = (int) (inputDevice->latencySamples + currentBufferSizeSamples);
|
||||
|
||||
if (! check (inputDevice->client->Start()))
|
||||
{
|
||||
|
|
@ -758,7 +758,7 @@ public:
|
|||
|
||||
if (outputDevice != nullptr && outputDevice->client != nullptr)
|
||||
{
|
||||
latencyOut = (int) (outputDevice->latencySamples + outputDevice->actualBufferSize + outputDevice->minBufferSize);
|
||||
latencyOut = (int) (outputDevice->latencySamples + currentBufferSizeSamples);
|
||||
|
||||
if (! check (outputDevice->client->Start()))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue