1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 01:39:05 -05:00

DSD demod: disable audio for YSF wide mode if AMBE feature is active. Fixes #1587

This commit is contained in:
f4exb 2023-02-04 02:36:48 +01:00
parent 2385cdde7c
commit 86c6dc861f
2 changed files with 11 additions and 2 deletions

View File

@ -232,8 +232,7 @@ void DSDDemodSink::feed(const SampleVector::const_iterator& begin, const SampleV
m_scopeSampleBuffer.push_back(s);
}
// if (DSPEngine::instance()->hasDVSerialSupport())
if (m_ambeFeature)
if (m_ambeFeature && isNotYSFWide())
{
if ((m_settings.m_slot1On) && m_dsdDecoder.mbeDVReady1())
{
@ -471,6 +470,15 @@ const char *DSDDemodSink::updateAndGetStatusText()
return m_formatStatusText;
}
bool DSDDemodSink::isNotYSFWide()
{
if (getDecoder().getSyncType() == DSDcc::DSDDecoder::DSDSyncYSF) {
return getDecoder().getYSFDecoder().getFICH().isNarrowMode();
}
return true;
}
void DSDDemodSink::formatStatusText()
{
switch (getDecoder().getSyncType())

View File

@ -158,6 +158,7 @@ private:
PhaseDiscriminators m_phaseDiscri;
void formatStatusText();
bool isNotYSFWide();
};
#endif // INCLUDE_DSDDEMODSINK_H