1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-03 13:35:28 -05:00

UDPSink plugin: activate VU meter for NFM modulation

This commit is contained in:
f4exb 2017-08-18 22:15:04 +02:00
parent 83026bea59
commit 6473c84e68
3 changed files with 6 additions and 2 deletions

View File

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

View File

@ -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_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.real(cos(m_modPhasor) * 10362.2f * m_running.m_gain);
m_modSample.imag(sin(m_modPhasor) * 10362.2f * m_running.m_gain); m_modSample.imag(sin(m_modPhasor) * 10362.2f * m_running.m_gain);
calculateLevel(m_modSample);
} }
else else
{ {

View File

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