public RTTY(CWExpert form) { MainForm = form; output_ch1 = new string(' ', 1); output_ch2 = new string(' ', 1); AudioEventRX1 = new AutoResetEvent(false); AudioEventRX2 = new AutoResetEvent(false); iq_buffer = new ComplexF[2048]; ch1_buffer = new float[2048]; ch2_buffer = new float[2048]; ch3_buffer = new float[2048]; ch4_buffer = new float[2048]; ch1_buf = new float[2048]; ch2_buf = new float[2048]; ch3_buf = new float[2048]; ch4_buf = new float[2048]; Mag_mark = new float[2, 2048]; Mag_space = new float[2, 2048]; display_timer = new HiPerfTimer(); trx = new TRX(); trx.modem = new rtty[MODEM_NR]; cs_audio = (void*)0x0; cs_audio = NewCriticalSection(); if (InitializeCriticalSectionAndSpinCount(cs_audio, 0x00000080) == 0) { MessageBox.Show("CriticalSection Failed", "Error!"); } for (int i = 0; i < 2048; i++) { zero_buffer[i].Re = 0.0f; zero_buffer[i].Im = 0.0f; } }
public CWDecode(CWExpert mainForm) { try { MainForm = mainForm; display_timer = new HiPerfTimer(); audio_buffer_l = new float[2048]; audio_buffer_r = new float[2048]; fft_buff_ch5 = new float[2048]; fft_buff_ch6 = new float[2048]; AudioEvent1 = new AutoResetEvent(false); AudioEvent2 = new AutoResetEvent(false); once = true; audio_buffer = new float[2048]; } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public PSK(CWExpert form) { MainForm = form; AudioEvent1 = new AutoResetEvent(false); AudioEvent2 = new AutoResetEvent(false); iq_buffer = new ComplexF[2048]; ch1_buffer = new float[2048]; ch2_buffer = new float[2048]; buffer_ch1 = new float[2048]; buffer_ch2 = new float[2048]; display_timer = new HiPerfTimer(); trx = new TRX(); trx.modem = new psk[MODEM_NR]; trx.outbuf = new ComplexF[819]; trx.outbuf1 = new ComplexF[8192]; trx.mon_outbuf = new ComplexF[8192]; iq_balancer = new IQBalancer(form); cs_audio = (void*)0x0; cs_audio = NewCriticalSection(); if (InitializeCriticalSectionAndSpinCount(cs_audio, 0x00000080) == 0) { Debug.WriteLine("CriticalSection Failed"); } fft = new Fourier(); }