BpsChannelScopeSwitcher(int scopeChannel) : innerChannel(scopeChannel) { outerChannel = bps_channel_get_active(); if (outerChannel != innerChannel) bps_channel_set_active(innerChannel); }
~BpsChannelScopeSwitcher() { if (outerChannel != innerChannel) bps_channel_set_active(outerChannel); }
void BBMBPS::SetActiveChannel(int channel) { bps_channel_set_active(channel); }