Browse Source

UDPSink plugin: activate VU meter for NFM modulation

chirpmodem-v8.0.0
f4exb 9 years ago
parent
commit
6473c84e68
  1. 4
      plugins/channelrx/udpsrc/udpsrcgui.ui
  2. 1
      plugins/channeltx/udpsink/udpsink.cpp
  3. 3
      plugins/channeltx/udpsink/udpsinkgui.ui

4
plugins/channelrx/udpsrc/udpsrcgui.ui

@ -6,13 +6,13 @@ @@ -6,13 +6,13 @@
<rect>
<x>0</x>
<y>0</y>
<width>351</width>
<width>342</width>
<height>355</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>316</width>
<width>342</width>
<height>0</height>
</size>
</property>

1
plugins/channeltx/udpsink/udpsink.cpp

@ -164,6 +164,7 @@ void UDPSink::modulateSample() @@ -164,6 +164,7 @@ void UDPSink::modulateSample()
m_modPhasor += (m_running.m_fmDeviation / m_running.m_inputSampleRate) * (t / 32768.0) * M_PI * 2.0f;
m_modSample.real(cos(m_modPhasor) * 10362.2f * m_running.m_gain);
m_modSample.imag(sin(m_modPhasor) * 10362.2f * m_running.m_gain);
calculateLevel(m_modSample);
}
else
{

3
plugins/channeltx/udpsink/udpsinkgui.ui

@ -639,6 +639,9 @@ @@ -639,6 +639,9 @@
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Reset UDP buffer index</string>
</property>
<property name="text">
<string>R</string>
</property>

Loading…
Cancel
Save