From 0a3dfdec006c82b31dfded6ec50f976a7df770a0 Mon Sep 17 00:00:00 2001 From: Etienne Dechamps Date: Sun, 21 Oct 2018 14:44:30 +0100 Subject: [PATCH] Check OutputReady() in FlexASIOTest. See #7. --- FlexASIOTest/test.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/FlexASIOTest/test.cpp b/FlexASIOTest/test.cpp index 35fe511a..5107c6d3 100644 --- a/FlexASIOTest/test.cpp +++ b/FlexASIOTest/test.cpp @@ -90,6 +90,11 @@ namespace flexasio_test { return PrintError(ASIOSetSampleRate(sampleRate)) == ASE_OK; } + bool OutputReady() { + std::cout << "ASIOOutputReady()" << std::endl; + return PrintError(ASIOOutputReady()) == ASE_OK; + } + bool Run() { if (!Init()) return false; @@ -113,6 +118,10 @@ namespace flexasio_test { if (!(CanSampleRate(sampleRate) && SetSampleRate(sampleRate) && GetSampleRate() == sampleRate) && sampleRate == 48000) return false; } + std::cout << std::endl; + + OutputReady(); + // Note: we don't call ASIOExit() because it gets confused by our driver setup trickery (see InitAndRun()). // That said, this doesn't really matter because ASIOExit() is basically a no-op in our case, anyway. return true;