public BlockPickStream(IQueueStream <short> inStream, int bandWidth, double attack, double decay, int maxSamples) { _inStream = inStream; _bandWidth = bandWidth; _decay = decay; _maxSamples = maxSamples; _attack = attack; _block = new short[0]; }
//--- Constructors --- /// <summary> /// Create a new Queue given an <see cref="IQueueStream"/> storage provider and an <see cref="IQueueItemSerializer{T}"/> serializer for type T. /// </summary> /// <remarks> /// This class assumes ownership of the provided <see cref="IQueueStream"/> resource and will dispose it upon instance disposal /// </remarks> /// <param name="stream">An implementation of <see cref="IQueueStream"/> <seealso cref="SingleFileQueueStream"/><seealso cref="MultiFileQueueStream"/></param> /// <param name="serializer">A serializer implementation of <see cref="IQueueItemSerializer{T}"/> for type T</param> public TransactionalQueue(IQueueStream stream, IQueueItemSerializer <T> serializer) { _stream = stream; _serializer = serializer; DefaultCommitTimeout = TimeSpan.FromSeconds(30); }