Making the fishes react to sound

A quick overview of the classes you can use to work with sound in openFrameworks:

ofSoundPlayer provides simple access to sound files, allowing you to easily load and play sounds, add sound effects to an app and extract some data about the file’s sound as it’s playing.

ofSoundStream gives you access to the computer’s sound hardware, allowing you to generate your own sound as well as react to sound coming into your computer from something like a microphone or line-in jack.

ofSoundBuffer is used to store a sequence of audio samples and perform audio-related things on said samples (like resampling).

As it relates to my project, I am using both ofSoundPlayer and ofSoundStream.

I am using ofSoundPlayer to load the bubble sound I integrated with my system, and I am also using ofSoundStream to accept audio input coming into my computer.