Exemplo n.º 1
0
 public void AddCue(int position, string label)
 {
     if (this.cues == null)
     {
         this.cues = new CueList();
     }
     this.cues.Add(new Cue(position, label));
 }
Exemplo n.º 2
0
        internal static CueList FromChunks(WaveFileReader reader)
        {
            CueList result = null;

            byte[] array  = null;
            byte[] array2 = null;
            foreach (RiffChunk current in reader.ExtraChunks)
            {
                if (current.IdentifierAsString.ToLower() == "cue ")
                {
                    array = reader.GetChunkData(current);
                }
                else if (current.IdentifierAsString.ToLower() == "list")
                {
                    array2 = reader.GetChunkData(current);
                }
            }
            if (array != null && array2 != null)
            {
                result = new CueList(array, array2);
            }
            return(result);
        }