/// <summary> /// Moves samples from the <paramref name="other"/> pipe instance to /// this instance. /// </summary> /// <param name="other">Other pipe instance where from the receive the /// data.</param> public void MoveSamples(FifoSamplePipe <TSampletype> other) { var oNumSamples = other.AvailableSamples; PutSamples(other.PtrBegin(), oNumSamples); other.ReceiveSamples(oNumSamples); }
/// <summary> /// This function is provided for accessing the output samples directly. /// Please be careful for not to corrupt the book-keeping! /// /// When using this function to output samples, also remember to /// 'remove' the output samples from the buffer by calling the /// <see cref="ReceiveSamples(int)"/>function /// </summary> /// <returns>Pointer to the beginning of the output samples.</returns> public override ArrayPtr <TSampletype> PtrBegin() { return(Output.PtrBegin()); }