Function for audio callbacks: sets a designated buffer to either the next buffer or zero