Esempio n. 1
0
 D2VocFormat(D2VocFormat cloneFrom)
 {
     SampleRate   = cloneFrom.SampleRate;
     stream       = SegmentStream.CreateWithoutOwningStream(cloneFrom.stream, 0, (int)cloneFrom.stream.Length);
     blocks       = cloneFrom.blocks;
     totalSamples = cloneFrom.totalSamples;
     Rewind();
 }
Esempio n. 2
0
        bool ISoundLoader.TryParseSound(Stream stream, out ISoundFormat sound)
        {
            try
            {
                sound = new D2VocFormat(stream);
                return(true);
            }
            catch
            {
                // Not a (supported) WAV
            }

            sound = null;
            return(false);
        }
Esempio n. 3
0
 public D2VocStream(D2VocFormat format)
 {
     this.format = format;
 }