コード例 #1
0
ファイル: GuiUtil.cs プロジェクト: xerohour/scsharp
        public static void PlayMusic(Mpq mpq, string resourcePath, int numLoops)
        {
            Stream stream = (Stream)mpq.GetResource(resourcePath);

            if (stream == null)
            {
                return;
            }
            Sound s = GuiUtil.SoundFromStream(stream);

            s.Play(true);
        }
コード例 #2
0
ファイル: GuiUtil.cs プロジェクト: xerohour/scsharp
        public static void PlaySound(Mpq mpq, string resourcePath)
        {
            Stream stream = (Stream)mpq.GetResource(resourcePath);

            if (stream == null)
            {
                return;
            }
            Sound s = GuiUtil.SoundFromStream(stream);

            s.Play();
        }