public void play(LoopStream loop) { loop.Position = 0; waveOut.Init(loop); waveOut.Volume = vol; waveOut.Play(); }
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; } } }