Example #1
0
        public static StreamingSource Stream(Stream stream)
        {
            PeekStream      peekStream = new PeekStream(stream, 64);
            SoundFileFormat format     = DetermineFileFormat(peekStream.GetInitialBytesStream());

            return(Stream(peekStream, format));
        }
Example #2
0
        public static Image Load(Stream stream)
        {
            PeekStream      peekStream = new PeekStream(stream, 64);
            ImageFileFormat format     = DetermineFileFormat(peekStream.GetInitialBytesStream());

            return(Load(peekStream, format));
        }
Example #3
0
        public static ModelData Load(Stream stream)
        {
            PeekStream      peekStream = new PeekStream(stream, 256);
            ModelFileFormat format     = DetermineFileFormat(peekStream.GetInitialBytesStream());

            return(Load(peekStream, format));
        }