/// <summary>
 /// Initializes a new instance of the <see cref="SampleBufferDictionary"/> class that's a copy
 /// of the specified <see cref="SampleBufferDictionary"/> instance.
 /// </summary>
 /// <param name="dictionary">The <see cref="SampleBufferDictionary"/> to copy.</param>
 public SampleBufferDictionary(SampleBufferDictionary dictionary) : base(dictionary)
 {
     this.FrameCapacity = dictionary.FrameCapacity;
     this.TotalFrames   = dictionary.TotalFrames;
     this.BufferSize    = dictionary.BufferSize;
     //this.TotalSamples = dictionary.TotalSamples;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SampleBuffer"/> class that
 /// contains the specified number of data frames.
 /// </summary>
 /// <param name="frameCapacity">The number of data frames that
 /// the <see cref="SampleBuffer"/> contains.</param>
 public SampleBuffer(int frameCapacity)
 {
     if (frameCapacity > 0)
     {
         this.FrameCapacity           = frameCapacity;
         this._sampleBufferDictionary = new SampleBufferDictionary(this.FrameCapacity);
         //this._sampleBufferDictionary.BufferFilled += new BufferFilledEventHandler( sampleBufferDictionary_BufferFilled );
     }
     else
     {
         throw new ArgumentException("must be greater than 0", "frameCapacity");
     }
 }
예제 #3
0
 public BufferFilledEventArgs(SampleBufferDictionary buffer)
 {
     // Defensive copy.
     this.Buffer = new SampleBufferDictionary(buffer);
 }