Beispiel #1
0
        private void TransmitBuffer(float[] buffer)
        {
            // Compress into packet
            var packet = VoiceChatUtils.Compress(buffer);

            packet.PacketId = ++packetId;

            // Raise event
            NewSample?.Invoke(packet);
        }
Beispiel #2
0
        /// <summary>
        /// Process the data in the queue
        /// </summary>
        void ProcessDataQueue(IBFSample sample)
        {
            if (sample != null)
            {
                lock (UnfilteredData)
                    UnfilteredData.Insert(0, sample);

                InspectSampleIndex(sample);

                NewSample?.Invoke(this, new BFSampleEventArgs(sample));
            }
        }