Exemple #1
0
        public static SongData Create(Stream stream)
        {
            SongData data = new SongData();

            data.Data = DataArray.Create(stream);

            data.Data.PropertyChanged += new Action <DataArray>(data.Data_PropertyChanged);

            return(data);
        }
Exemple #2
0
        public static AudioFormat Create(Stream stream)
        {
            AudioFormat format = new AudioFormat();

            DataArray data = DataArray.Create(stream);

            format.Mappings.AddRange(data.GetArray <Mapping>("mappings"));
            format.InitialOffset = data.GetValue <int>("offset");

            return(format);
        }