Recurity.Swf.TagHandler.DefineSound.getFormat C# (CSharp) Method

getFormat() public static method

public static getFormat ( uint type ) : SoundEncoding
type uint
return SoundEncoding
        public static SoundEncoding getFormat(uint type)
        {
            if (type == 0)
                return SoundEncoding.uncompressed_native;

            else if(type == 1)
                return SoundEncoding.ADPCM;

            else if(type == 2)
                return SoundEncoding.MP3;

            else if(type == 3)
                return SoundEncoding.Uncompressed_little_endian;

            else if(type == 4)
                return SoundEncoding.Nellymoser8kHz;

            else if(type == 5)
                return SoundEncoding.Nellymoser16kHz;

            else if(type == 6)
                return SoundEncoding.Nellymoser;

            else if(type == 11)
                return SoundEncoding.Speex;

            SwfFormatException sfe = new SwfFormatException("coding format is not defined");
            Log.Error(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.DeclaringType, sfe);
            throw sfe;
        }