ofBook Sound: "Waveforms" code runs but no sound

The segment Synthesizing Audio starts with Waveforms and some code to start the beginner in the right direction. I’ve simply done a copy-and-paste into Visual Studio, changed old-style constant M_PI to PI and executed the result.

The animation seems to work as intended: reacting to mouse cursor position to modify the display. However, I’m getting no sound output.

I’ve proof read my code and it seems faithful to the ofBook text. The compiler suggests that in ofApp::setup() I not use ofSoundSetup(1,0) but rather an ofSoundStreamSettings object. I’ve seen this style in other examples but, here, explicitly setting individual variables for frequency, etc., seems to work – if not top notch C++!

Is the Waveforms code out of date or am I missing something?
Thanks.