Posted on August 23, 2015Mutex (3) Sound::asound_read() writes audio samples into audio_signal[] by incrementing the write pointer signal_end, while MyDrawingAreaS::on_draw() also modifies the write pointer when it shifts down the bulk of data in audio_signal[].