예제 #1
0
		public void Rewind()
		{
			Dispose();
			asf = new AsfFile(filepath);
			var audioStream = new AsfStream(asf, AsfStreamType.asfAudio, 0);
			soundStream = new AsfAudio(audioStream).GetWaveStream();
			video = new AsfImageLoader(asf);
		}
예제 #2
0
		public WmvVideoStream(string filepath)
		{
			this.filepath = filepath;
			asf = new AsfFile(filepath);
			var audioStream = new AsfStream(asf, AsfStreamType.asfAudio, 0);
			soundStream = new AsfAudio(audioStream).GetWaveStream();
			video = new AsfImageLoader(asf);
		}
예제 #3
0
		public void Dispose()
		{
			if (soundStream != null)
				soundStream.Dispose();
			soundStream = null;
			if (video != null)
				video.Dispose();
			video = null;
			if (asf != null)
				asf.Dispose();
			asf = null;
		}