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:
parent
2385cdde7c
commit
86c6dc861f
@ -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())
|
||||
|
@ -158,6 +158,7 @@ private:
|
||||
PhaseDiscriminators m_phaseDiscri;
|
||||
|
||||
void formatStatusText();
|
||||
bool isNotYSFWide();
|
||||
};
|
||||
|
||||
#endif // INCLUDE_DSDDEMODSINK_H
|
||||
|
Loading…
Reference in New Issue
Block a user