音频流
Inheritance: IDisposable
Esempio 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);
 }
Esempio n. 2
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);
 }
Esempio n. 3
0
 public AudioPlayer(AudioStream stream)
 {
     Stream = stream;
     Paused = false;
 }
Esempio 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);
 }
Esempio n. 5
0
 public AudioPlayer(AudioStream stream)
 {
     Stream = stream;
     Paused = false;
 }