bool ISoundLoader.TryParseSound(Stream stream, out ISoundFormat sound) { try { sound = new Mp3Format(stream); return(true); } catch { // Not a (supported) MP3 } sound = null; return(false); }
Stream Clone(Mp3Format cloneFrom) { return(SegmentStream.CreateWithoutOwningStream(cloneFrom.stream, 0, (int)cloneFrom.stream.Length)); }