音频播放器
Inheritance: IDisposable
Exemplo n.º 1
0
 public VideoPlayer(string file,bool autosize = true)
     : base(file,autosize)
 {
     AudioStream = new AudioStream(file);
     if (AudioStream.Length == -1)
         AudioStream = null;
     else
         _player = new AudioPlayer(AudioStream);
 }
Exemplo n.º 2
0
 private void MapSelect_Show(object sender, EventArgs e)
 {
     player = new AudioPlayer(bgstream);
     player.Play(true);
 }
Exemplo n.º 3
0
 //TODO: audio & video offset
 public VideoPlayer(string audio,string file,bool autosize = true)
     : base(file,autosize)
 {
     AudioStream = new AudioStream(audio);
     _player = new AudioPlayer(AudioStream);
 }
Exemplo n.º 4
0
 //TODO: audio & video offset
 public VideoPlayer(string audio, string file, bool autosize = true) : base(file, autosize)
 {
     AudioStream = new AudioStream(audio);
     _player     = new AudioPlayer(AudioStream);
 }