Exemplo n.º 1
0
        private void OnSoundDataAvailable(object sender, DataAvailableEventArgs dataAvailableEventArgs)
        {
            int readCount;

            while ((readCount = _stream.Read(_readBuffer, 0, _readBuffer.Length)) > 0)
            {
                DataAvailable?.Invoke(_readBuffer, 0, readCount);
            }
        }