Пример #1
0
        private void SignalGenerationComplete(int numberOfBits, int audioLengthInMicroseconds, float[] samples, int sampleRate)
        {
            var e = new SignalGenerationResultEventArgs
            {
                NumberOfBits = numberOfBits,
                AudioLengthInMicroseconds = audioLengthInMicroseconds,
                Samples    = samples,
                SampleRate = sampleRate
            };

            SignalGenerationCompleted?.Invoke(this, e);
        }
 private void SignalGenerationCompletedHandler(object sender, SignalGenerationResultEventArgs e)
 {
     backgroundWorker1.ReportProgress(0, e);
 }
 private void UpdateSignalGenerationInformation(SignalGenerationResultEventArgs signalGenerationResult)
 {
     _signalGenerationResult = signalGenerationResult;
 }