音频播放器
Наследование: IDisposable
Пример #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);
 }
Пример #2
0
 private void MapSelect_Show(object sender, EventArgs e)
 {
     player = new AudioPlayer(bgstream);
     player.Play(true);
 }
Пример #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);
 }
Пример #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);
 }