1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-23 00:18:37 -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>
<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>

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_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
{

View File

@ -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>