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

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

This commit is contained in:
f4exb 2016-08-31 14:11:11 +02:00
parent f4a3374104
commit db96243875
2 changed files with 4 additions and 4 deletions

View File

@ -31,8 +31,8 @@ public:
void pushSample(short sample) { m_decoder.run(sample); }
short getFilteredSample() const { return m_decoder.getFilteredSample(); }
short getSymbolSyncSample() const { return m_decoder.getSymbolSyncSample(); }
short *getAudio(int& nbSamples) { return m_decoder.getAudio(nbSamples); }
void resetAudio() { m_decoder.resetAudio(); }
short *getAudio1(int& nbSamples) { return m_decoder.getAudio1(nbSamples); }
void resetAudio1() { m_decoder.resetAudio1(); }
void enableMbelib(bool enable) { m_decoder.enableMbelib(enable); }
bool mbeDVReady() const { return m_decoder.mbeDVReady(); }

View File

@ -207,7 +207,7 @@ void DSDDemod::feed(const SampleVector::const_iterator& begin, const SampleVecto
if (!DSPEngine::instance()->hasDVSerialSupport())
{
int nbAudioSamples;
short *dsdAudio = m_dsdDecoder.getAudio(nbAudioSamples);
short *dsdAudio = m_dsdDecoder.getAudio1(nbAudioSamples);
if (nbAudioSamples > 0)
{
@ -215,7 +215,7 @@ void DSDDemod::feed(const SampleVector::const_iterator& begin, const SampleVecto
uint res = m_audioFifo.write((const quint8*) dsdAudio, nbAudioSamples, 10);
}
m_dsdDecoder.resetAudio();
m_dsdDecoder.resetAudio1();
}
}