Example #1
0
        public static Enum12 smethod_10(WaveFormat waveFormat_0)
        {
            switch (waveFormat_0.waveFormatTag_0)
            {
            case WaveFormatTag.PCM:
                switch (waveFormat_0.short_0)
                {
                case 1:
                {
                    short short_ = waveFormat_0.short_2;
                    if (short_ == 8)
                    {
                        return(Enum12.const_0);
                    }
                    if (short_ == 16)
                    {
                        return(Enum12.const_1);
                    }
                    break;
                }

                case 2:
                {
                    short short_2 = waveFormat_0.short_2;
                    if (short_2 == 8)
                    {
                        return(Enum12.const_2);
                    }
                    if (short_2 == 16)
                    {
                        return(Enum12.const_3);
                    }
                    break;
                }

                default:
                    if (Class119.smethod_1())
                    {
                        switch (waveFormat_0.short_0)
                        {
                        case 4:
                        {
                            short short_3 = waveFormat_0.short_2;
                            if (short_3 == 8)
                            {
                                return(Enum12.const_6);
                            }
                            if (short_3 == 16)
                            {
                                return(Enum12.const_7);
                            }
                            if (short_3 == 32)
                            {
                                return(Enum12.const_8);
                            }
                            break;
                        }

                        case 5:
                        {
                            short short_4 = waveFormat_0.short_2;
                            if (short_4 == 8)
                            {
                                return(Enum12.const_9);
                            }
                            if (short_4 == 16)
                            {
                                return(Enum12.const_10);
                            }
                            if (short_4 == 32)
                            {
                                return(Enum12.const_11);
                            }
                            break;
                        }

                        case 6:
                        {
                            short short_5 = waveFormat_0.short_2;
                            if (short_5 == 8)
                            {
                                return(Enum12.const_12);
                            }
                            if (short_5 == 16)
                            {
                                return(Enum12.const_13);
                            }
                            if (short_5 == 32)
                            {
                                return(Enum12.const_14);
                            }
                            break;
                        }

                        case 7:
                        {
                            short short_6 = waveFormat_0.short_2;
                            if (short_6 == 8)
                            {
                                return(Enum12.const_15);
                            }
                            if (short_6 == 16)
                            {
                                return(Enum12.const_16);
                            }
                            if (short_6 == 32)
                            {
                                return(Enum12.const_17);
                            }
                            break;
                        }

                        case 8:
                        {
                            short short_7 = waveFormat_0.short_2;
                            if (short_7 == 8)
                            {
                                return(Enum12.const_18);
                            }
                            if (short_7 == 16)
                            {
                                return(Enum12.const_19);
                            }
                            if (short_7 == 32)
                            {
                                return(Enum12.const_20);
                            }
                            break;
                        }
                        }
                    }
                    break;
                }
                break;

            case WaveFormatTag.IEEEFloat:
                if (Class119.smethod_0())
                {
                    switch (waveFormat_0.short_0)
                    {
                    case 1:
                        return(Enum12.const_4);

                    case 2:
                        return(Enum12.const_5);
                    }
                }
                break;
            }
            throw new NotSupportedException(string.Concat(new object[]
            {
                "OpenAL does not support this format: ",
                waveFormat_0.waveFormatTag_0,
                " | ",
                (int)waveFormat_0.waveFormatTag_0
            }));
        }