コード例 #1
0
ファイル: VorbisTime.cs プロジェクト: reidyd/nvorbis
        internal static VorbisTime Init(VorbisStreamDecoder vorbis, DataPacket packet)
        {
            var type = (int)packet.ReadBits(16);

            VorbisTime time = null;
            switch (type)
            {
                case 0: time = new Time0(vorbis); break;
            }
            if (time == null) throw new InvalidDataException();

            time.Init(packet);
            return time;
        }
コード例 #2
0
ファイル: VorbisTime.cs プロジェクト: 1144822034/sc2.2mobile
        internal static VorbisTime Init(VorbisStreamDecoder vorbis, DataPacket packet)
        {
            int        num        = (int)packet.ReadBits(16);
            VorbisTime vorbisTime = null;

            if (num == 0)
            {
                vorbisTime = new Time0(vorbis);
            }
            if (vorbisTime == null)
            {
                throw new InvalidDataException();
            }
            vorbisTime.Init(packet);
            return(vorbisTime);
        }
コード例 #3
0
ファイル: VorbisTime.cs プロジェクト: uniphonic/G-Audio
        internal static VorbisTime Init(VorbisStreamDecoder vorbis, DataPacket packet)
        {
            var type = (int)packet.ReadBits(16);

            VorbisTime time = null;

            switch (type)
            {
            case 0: time = new Time0(vorbis); break;
            }
            if (time == null)
            {
                throw new InvalidDataException();
            }

            time.Init(packet);
            return(time);
        }
コード例 #4
0
ファイル: Time0.cs プロジェクト: Lan-megumi/DecodeGame
    public GameObject SImage;  //评分背景图片S

    void Awake()
    {
        _instance = this;
    }