I am using this class to read a wave stream but the derived stream class that I am using that contains the wave does not support setting the Postion (CanSeek == false).
public void ReadWaveHeader(Stream stream)
{ ...
while (stream.Position <= stopPosition - 8)
{...
stream.Position += chunkLength; //This line throws an expection.
}
...
}
Is it posible to use another metholody to read the wave that is not based on Postion? or is there another alternative?
Comments: the trouble is, after reading all the chunks, it then will go back to the start of the data position. However, I guess it would be possible to make a version of this class that does not set position (just does read), and stops before going past the data chunk
public void ReadWaveHeader(Stream stream)
{ ...
while (stream.Position <= stopPosition - 8)
{...
stream.Position += chunkLength; //This line throws an expection.
}
...
}
Is it posible to use another metholody to read the wave that is not based on Postion? or is there another alternative?
Comments: the trouble is, after reading all the chunks, it then will go back to the start of the data position. However, I guess it would be possible to make a version of this class that does not set position (just does read), and stops before going past the data chunk