Example #1
0
        public static MetaEventType InsertEventTypeToMetaEventType(TextEventType type)
        {
            switch (type)
            {
            case TextEventType.Copyright:
                return(MetaEventType.Copyright);

            case TextEventType.Marker:
                return(MetaEventType.Marker);

            case TextEventType.Text:
                return(MetaEventType.TextEvent);

            case TextEventType.TrackName:
                return(MetaEventType.SequenceTrackName);

            default:
                throw new NotSupportedException(String.Format("Unsupported Event Type {0}", type));
            }
        }
Example #2
0
 public TextEvent(ulong time, string text, TextEventType type) : base(time)
 {
     Text = text;
     Type = type;
 }