1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-27 02:09:14 -05:00

DSD demod plugin: prepare dual TDMA slot audio handling (DV serial part)

This commit is contained in:
f4exb 2016-08-31 16:15:53 +02:00
parent db96243875
commit 409a4e2292
2 changed files with 6 additions and 6 deletions

View File

@ -35,9 +35,9 @@ public:
void resetAudio1() { m_decoder.resetAudio1(); } void resetAudio1() { m_decoder.resetAudio1(); }
void enableMbelib(bool enable) { m_decoder.enableMbelib(enable); } void enableMbelib(bool enable) { m_decoder.enableMbelib(enable); }
bool mbeDVReady() const { return m_decoder.mbeDVReady(); } bool mbeDVReady1() const { return m_decoder.mbeDVReady1(); }
void resetMbeDV() { m_decoder.resetMbeDV(); } void resetMbeDV1() { m_decoder.resetMbeDV1(); }
const unsigned char *getMbeDVFrame() const { return m_decoder.getMbeDVFrame(); } const unsigned char *getMbeDVFrame1() const { return m_decoder.getMbeDVFrame1(); }
int getMbeRateIndex() const { return (int) m_decoder.getMbeRate(); } int getMbeRateIndex() const { return (int) m_decoder.getMbeRate(); }
int getInLevel() const { return m_decoder.getInLevel(); } int getInLevel() const { return m_decoder.getInLevel(); }

View File

@ -192,12 +192,12 @@ void DSDDemod::feed(const SampleVector::const_iterator& begin, const SampleVecto
m_scopeSampleBuffer.push_back(s); m_scopeSampleBuffer.push_back(s);
} }
if (DSPEngine::instance()->hasDVSerialSupport() && m_dsdDecoder.mbeDVReady()) if (DSPEngine::instance()->hasDVSerialSupport() && m_dsdDecoder.mbeDVReady1())
{ {
if (!m_running.m_audioMute) { if (!m_running.m_audioMute) {
DSPEngine::instance()->pushMbeFrame(m_dsdDecoder.getMbeDVFrame(), m_dsdDecoder.getMbeRateIndex(), m_running.m_volume, &m_audioFifo); DSPEngine::instance()->pushMbeFrame(m_dsdDecoder.getMbeDVFrame1(), m_dsdDecoder.getMbeRateIndex(), m_running.m_volume, &m_audioFifo);
} }
m_dsdDecoder.resetMbeDV(); m_dsdDecoder.resetMbeDV1();
} }
m_interpolatorDistanceRemain += m_interpolatorDistance; m_interpolatorDistanceRemain += m_interpolatorDistance;