Why is this loop running if the flag is 0?
Posted: Jul 20th, '16, 02:33
I'm working on creating FFT and Sonogram views of sound as they're being recorded. I'm storing the current sound input in a shared variable soundseg, then adding all segments together (for later playback) and also creating a list of lists of segments (for a sonogram view). I have a separate instance continually watching for changes in soundseg to display an FFT view.
The below image captures one of the things I'm trying to understand. I want to keep recording while the shared variable "recording" is 1. The record loop is still running (as the highlight around the script suggests). The shared variable recording is 0. Why is the loop still running?
The below image captures one of the things I'm trying to understand. I want to keep recording while the shared variable "recording" is 1. The record loop is still running (as the highlight around the script suggests). The shared variable recording is 0. Why is the loop still running?