How to add or remove a channel from buffer?