Only output logging every chunk if we're in debug mode; also, close and reopen the ALSA output any time we change the PCM parameters.