Exemple #1
0
        private short GetChannelCount(Mp3ChannelMode channelsMode)
        {
            if (channelsMode == Mp3ChannelMode.Mono)
            {
                return(1);
            }
            if (channelsMode == Mp3ChannelMode.Stereo)
            {
                return(2);
            }
            if (channelsMode == Mp3ChannelMode.JointStereo)
            {
                return(2);
            }
            if (channelsMode == Mp3ChannelMode.DualChannel)
            {
                return(2);
            }

            return(0);
        }
Exemple #2
0
        private short GetChannelCount(Mp3ChannelMode channelsMode)
        {
            if (channelsMode == Mp3ChannelMode.Mono)
                return 1;
            if (channelsMode == Mp3ChannelMode.Stereo)
                return 2;
            if (channelsMode == Mp3ChannelMode.JointStereo)
                return 2;
            if (channelsMode == Mp3ChannelMode.DualChannel)
                return 2;

            return 0;
        }