public MainWindow() : base(Gtk.WindowType.Toplevel) { Build (); this.SoundSystem = new Linsft.FmodSharp.SoundSystem.SoundSystem(); this.SoundSystem.Init(); this.SoundFile = SoundSystem.CreateSound (@"/home/madrang/Music/Tetris.mp3", Linsft.FmodSharp.Mode.Default); if(this.Channel != null) this.Channel.Dispose(); this.Channel = this.SoundSystem.PlaySound(SoundFile); this.fft_Draw = new Linsft.FmodSharp.Gtk.FFTDraw(); this.fft_Draw.Source = this.Channel; this.fft_Draw.Show(); this.Add(this.fft_Draw); }
public MainWindow() : base(Gtk.WindowType.Toplevel) { Build(); this.SoundSystem = new Linsft.FmodSharp.SoundSystem.SoundSystem(); this.SoundSystem.Init(); this.SoundFile = SoundSystem.CreateSound(@"/home/madrang/Music/Tetris.mp3", Linsft.FmodSharp.Mode.Default); if (this.Channel != null) { this.Channel.Dispose(); } this.Channel = this.SoundSystem.PlaySound(SoundFile); this.fft_Draw = new Linsft.FmodSharp.Gtk.FFTDraw(); this.fft_Draw.Source = this.Channel; this.fft_Draw.Show(); this.Add(this.fft_Draw); }