Skip to content

Commit

Permalink
Log channel count after initalization.
Browse files Browse the repository at this point in the history
  • Loading branch information
dechamps committed Nov 11, 2018
1 parent 178dc67 commit 85c8de6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions FlexASIO/flexasio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ namespace flexasio {
Log() << "sysHandle = " << sysHandle;

if (!inputDevice.has_value() && !outputDevice.has_value()) throw ASIOException(ASE_HWMalfunction, "No usable input nor output devices");

Log() << "Channel count: " << GetInputChannelCount() << " input, " << GetOutputChannelCount() << " output";
}

void FlexASIO::GetChannels(long* numInputChannels, long* numOutputChannels)
Expand Down

0 comments on commit 85c8de6

Please sign in to comment.