mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-06 06:53:42 +00:00
VS2019 fixes.
This commit is contained in:
parent
2a8e1ce9f4
commit
467140dbf8
3 changed files with 10 additions and 4 deletions
|
|
@ -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)
|
||||
for(unsigned int i = 0U; i < nSamples; i++) {
|
||||
for (unsigned int i = 0U; i < nSamples; i++)
|
||||
samples[i] = m_deemphasis.filter(samples[i]);
|
||||
}
|
||||
|
||||
unsigned char out[350U];
|
||||
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.
|
||||
for(unsigned int i = 0U; i < nSamples; i++) {
|
||||
for (unsigned int i = 0U; i < nSamples; 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)
|
||||
unsigned int pack = 0U;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue