-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
I don't know if this repo is still maintained but I give a try.
I started with a console program that read a mf4 file
using (StreamReader sr = new StreamReader(@"D:\...\104746_001.mf4"))
{
ASAM.MDF.Libary.Mdf mdf = new ASAM.MDF.Libary.Mdf(sr.BaseStream);
}
First of all I got a FormatExeption in the by reading the HeaderBlock. I don't know we it's so strict that size must be greater than 4 but compared with "https://pypi.org/project/asammdf/#files"
there is no problem by reading.
Secound point I want to read the Channels of my file, but when I see it correct. You create a DataGroupCollection but don't fill it with data from stream. Is this right?
public Mdf(Stream stream)
{
if (stream == null)
throw new ArgumentNullException("stream");
if (!stream.CanSeek)
throw new ArgumentException("stream");
Data = stream;
Data.Position = 0;
DataGroups = new DataGroupCollection(this);
IDBlock = IdentificationBlock.Read(this, stream);
HDBlock = HeaderBlock.Read(this, stream);
}
Metadata
Metadata
Assignees
Labels
No labels