Ejemplo n.º 1
0
        //protected void OnStopMe()
        //{

        //    if (Stop != null)
        //    {
        //        Stop(this, EventArgs.Empty);
        //    }
        //}
        protected override void HandleDataReady(object sender, SoundDataReadyEventArgs args)
        {
            StatusText = "Buffering ...";
            SoundDataBuffer.Push(args.SoundData);
            if (SoundDataBuffer.Size > bufferTime)
            {
                this.OnDataReady();
            }
        }
Ejemplo n.º 2
0
        protected void OnDataReady()
        {
            SoundDataReadyEventArgs dataSet = new SoundDataReadyEventArgs(SoundDataBuffer.Size, frequency, SoundDataBuffer.PopAll(), false);

            adsKill = new Thread(() => ads.Process(dataSet));
            adsKill.Start();
            dataSet.DataParcelNumber = ++bufferCounter;
        }