Buffering Audio Streams in Windows Phone 8 -
Buffering Audio Streams in Windows Phone 8 -
i working on net radio streaming application windows phone. researching best-practices , different implementations. using next code read stream:
private memorystream bufferstream; private stream stream; ... ... ... byte[] info = new byte[2048]; int read; while (true) { read = stream.read(data, 0, data.length); binarywriter bw = new binarywriter(bufferstream); bw.write(data); bw.flush(); }
i not sure whether efficient way. also, saw circular buffer implementation. most-efficient way stream music without "hiccups", "artifacts" , interruptions?
i found phonesm project on codeplex provides great examples , functionality implementing net sound streaming.
have on here too:
http://www.c-sharpcorner.com/uploadfile/dhananjaycoder/smooth-streaming-on-windows-phone-7/
hope helps!
windows-phone-8 audio-streaming memorystream circular-buffer binarywriter
Comments
Post a Comment