Skip to content

Commit

Permalink
Check OutputReady() in FlexASIOTest.
Browse files Browse the repository at this point in the history
See #7.
  • Loading branch information
dechamps committed Oct 21, 2018
1 parent f917388 commit 0a3dfde
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions FlexASIOTest/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down

0 comments on commit 0a3dfde

Please sign in to comment.