public void Initialize(int consumerCount) { blockSource.InitializeBlock(out circBuffer.Buffer[(circBuffer.ProducerPosition - 1) & (circBuffer.BlockCount - 1)]); circBuffer.Initialize(consumerCount); tRefiller = new Thread(Filler); //BufferUnderrunCount = 0; isEndOfStream = false; }