Suggestions for the Processing Audio Input tutorial

Continuing the discussion from Can’t hear audio in “Processing audio input” tutorial and can’t use printf:

I wrote some suggestions for the Processing Audio Input tutorial here. This link is to my comment explaining the issue I had with the tutorial, what the root cause was (one line of logic in the code doesn’t align with the stated intention of the tutorial), and the change I made to the code that I think would work better for all beginners.

(link to the tutorial)