1. 程式人生 > >斷點續傳續播的大概原理

斷點續傳續播的大概原理

FileInfo fi = new FileInfo(Path);

FileStream fs = fi.OpenRead();

byte[] bys = new byte[fi.length+1];

fs.Read(bys,0,50000);

MemoryStream ms = new MemoryStream(bys);

SoundPlayer sp = new SoundPlayer(ms);

sp.PlaySync();