|
for (int k = 0; k < info.channel_count(); k++) |
It seems as the linked line should reference the local variable "inf" and not "info". I suggest splitting the inspection of the stream info into a separate method to make it clear that the two sections of code is independent.