Only set sound buffer if it was successfully read.