Skip to content

Commit

Permalink
Check stream characteristics again after creating buffers.
Browse files Browse the repository at this point in the history
This is what the sample host application from the ASIO SDK does.

See #7.
  • Loading branch information
dechamps committed Oct 21, 2018
1 parent ab776a3 commit 86a13bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions FlexASIOTest/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ namespace flexasio_test {
const auto buffers = CreateBuffers(ioChannelCounts, bufferSize->preferred, callbacks);
if (buffers.size() == 0) return false;

std::cout << std::endl;

GetSampleRate();
GetAllChannelInfo(ioChannelCounts);

// 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 86a13bc

Please sign in to comment.