Esempio n. 1
0
 public void play(LoopStream loop)
 {
     loop.Position = 0;
     waveOut.Init(loop);
     waveOut.Volume = vol;
     waveOut.Play();
 }
Esempio n. 2
0
        public void DrawPage(int pageNumber, AudioFileReader bgmFile)
        {
            loop = new LoopStream(bgmFile);
            play(loop);

            for (int i = 0; i < panelN; i++)
            {
                if (i != pageNumber)
                {
                    panel[i].Visible = false;
                }
                else
                {
                    panel[i].Visible = true;
                }
            }
        }