Example #1
0
        bool ISoundLoader.TryParseSound(Stream stream, out ISoundFormat sound)
        {
            try
            {
                sound = new Mp3Format(stream);
                return(true);
            }
            catch
            {
                // Not a (supported) MP3
            }

            sound = null;
            return(false);
        }
Example #2
0
 Stream Clone(Mp3Format cloneFrom)
 {
     return(SegmentStream.CreateWithoutOwningStream(cloneFrom.stream, 0, (int)cloneFrom.stream.Length));
 }