public PiffHandlerType(PiffTrackTypes trackType) { if (trackType == PiffTrackTypes.Audio) { HandlerType = "soun"; Name = "Audio"; } else { HandlerType = "vide"; Name = "Video"; } }
private PiffTrackHeader( DateTime created, long duration, int trackId, PiffTrackTypes trackType, short width, short height) { CreationTime = PiffWriter.GetSecondsFromEpoch(created); ModificationTime = CreationTime; TrackId = trackId; Duration = duration; if (trackType == PiffTrackTypes.Audio) { Volume = 0x100; Width = 0; Height = 0; } else { Volume = 0; Width = width << 16; Height = height << 16; } }