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); }
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); }
public void Dispose() { if (soundStream != null) { soundStream.Dispose(); } soundStream = null; if (video != null) { video.Dispose(); } video = null; if (asf != null) { asf.Dispose(); } asf = null; }