mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
Fix compilation error when HAS_SRC is defined.
This commit is contained in:
@@ -415,7 +415,7 @@ unsigned int CFMNetwork::readData(float* out, unsigned int nOut)
|
|||||||
return 0U;
|
return 0U;
|
||||||
|
|
||||||
#if defined(HAS_SRC)
|
#if defined(HAS_SRC)
|
||||||
if ((m_protocol == RAW) && (m_sampleRate != MMDVM_SAMPLERATE)) {
|
if ((m_protocol == FM_NETWORK_PROTOCOL::RAW) && (m_sampleRate != MMDVM_SAMPLERATE)) {
|
||||||
unsigned int nIn = (nOut * m_sampleRate) / MMDVM_SAMPLERATE;
|
unsigned int nIn = (nOut * m_sampleRate) / MMDVM_SAMPLERATE;
|
||||||
|
|
||||||
if (bytes < nIn) {
|
if (bytes < nIn) {
|
||||||
|
|||||||
Reference in New Issue
Block a user