OutputChannels
public static OutputChannels fromInt(int code) { switch (code) { case (int)OutputChannelsEnum.LEFT_CHANNEL: return LEFT; case (int)OutputChannelsEnum.RIGHT_CHANNEL: return RIGHT; case (int)OutputChannelsEnum.BOTH_CHANNELS: return BOTH; case (int)OutputChannelsEnum.DOWNMIX_CHANNELS: return DOWNMIX; default: throw new System.ArgumentException("Invalid channel code: " + code); } }