protected override void AfterConsumption() { base.AfterConsumption(); LastPhone = new MBROLAElement("_", 0); _DoneProducing(); InvokeAudioFinished(); }
protected override void Consume(Queue <MBROLAElement> InQueue) { MBROLAElement p = InQueue.Dequeue(); if (LastPhone != null) { byte[] buf = Voice.GetDiphone(LastPhone.Symbol, p.Symbol); /* int[] ibuf = new uint[buf.Length/2]; * Buffer.BlockCopy(buf, 0, ibuf, 0, buf.Length); * buf = 0;*/ if (buf.Length > 0) { BufferReady(buf); } } LastPhone = p; }
protected override void BeforeConsumption() { base.BeforeConsumption(); LastPhone = new MBROLAElement("_", 0); }