mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 15:09:23 +08:00
VS2019 fixes.
This commit is contained in:
@@ -66,9 +66,8 @@ bool CFMControl::writeModem(const unsigned char* data, unsigned int length)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// De-emphasise the data and any other processing needed (maybe a low-pass filter to remove the CTCSS)
|
// De-emphasise the data and any other processing needed (maybe a low-pass filter to remove the CTCSS)
|
||||||
for(unsigned int i = 0U; i < nSamples; i++) {
|
for (unsigned int i = 0U; i < nSamples; i++)
|
||||||
samples[i] = m_deemphasis.filter(samples[i]);
|
samples[i] = m_deemphasis.filter(samples[i]);
|
||||||
}
|
|
||||||
|
|
||||||
unsigned char out[350U];
|
unsigned char out[350U];
|
||||||
unsigned int nOut = 0U;
|
unsigned int nOut = 0U;
|
||||||
@@ -104,9 +103,8 @@ unsigned int CFMControl::readModem(unsigned char* data, unsigned int space)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Pre-emphasise the data and other stuff.
|
// Pre-emphasise the data and other stuff.
|
||||||
for(unsigned int i = 0U; i < nSamples; i++) {
|
for (unsigned int i = 0U; i < nSamples; i++)
|
||||||
samples[i] = m_preemphasis.filter(samples[i]);
|
samples[i] = m_preemphasis.filter(samples[i]);
|
||||||
}
|
|
||||||
|
|
||||||
// Pack the floating point data (+1.0 to -1.0) to packed 12-bit samples (+2047 - -2048)
|
// Pack the floating point data (+1.0 to -1.0) to packed 12-bit samples (+2047 - -2048)
|
||||||
unsigned int pack = 0U;
|
unsigned int pack = 0U;
|
||||||
|
|||||||
@@ -188,6 +188,7 @@
|
|||||||
<ClInclude Include="Hamming.h" />
|
<ClInclude Include="Hamming.h" />
|
||||||
<ClInclude Include="DMRLookup.h" />
|
<ClInclude Include="DMRLookup.h" />
|
||||||
<ClInclude Include="I2CController.h" />
|
<ClInclude Include="I2CController.h" />
|
||||||
|
<ClInclude Include="IIRDirectForm1Filter.h" />
|
||||||
<ClInclude Include="LCDproc.h" />
|
<ClInclude Include="LCDproc.h" />
|
||||||
<ClInclude Include="Log.h" />
|
<ClInclude Include="Log.h" />
|
||||||
<ClInclude Include="MMDVMHost.h" />
|
<ClInclude Include="MMDVMHost.h" />
|
||||||
@@ -285,6 +286,7 @@
|
|||||||
<ClCompile Include="Golay24128.cpp" />
|
<ClCompile Include="Golay24128.cpp" />
|
||||||
<ClCompile Include="Hamming.cpp" />
|
<ClCompile Include="Hamming.cpp" />
|
||||||
<ClCompile Include="I2CController.cpp" />
|
<ClCompile Include="I2CController.cpp" />
|
||||||
|
<ClCompile Include="IIRDirectForm1Filter.cpp" />
|
||||||
<ClCompile Include="LCDproc.cpp" />
|
<ClCompile Include="LCDproc.cpp" />
|
||||||
<ClCompile Include="Log.cpp" />
|
<ClCompile Include="Log.cpp" />
|
||||||
<ClCompile Include="MMDVMHost.cpp" />
|
<ClCompile Include="MMDVMHost.cpp" />
|
||||||
|
|||||||
@@ -305,6 +305,9 @@
|
|||||||
<ClInclude Include="FMControl.h">
|
<ClInclude Include="FMControl.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="IIRDirectForm1Filter.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="BPTC19696.cpp">
|
<ClCompile Include="BPTC19696.cpp">
|
||||||
@@ -574,5 +577,8 @@
|
|||||||
<ClCompile Include="FMControl.cpp">
|
<ClCompile Include="FMControl.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="IIRDirectForm1Filter.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
Reference in New Issue
Block a user