mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-08-14 15:33:34 -04:00
New AMBE engine (3)
This commit is contained in:
+13
-51
@@ -155,44 +155,25 @@ DSPDeviceMIMOEngine *DSPEngine::getDeviceMIMOEngineByUID(uint uid)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
#ifdef DSD_USE_SERIALDV
|
||||
void DSPEngine::setDVSerialSupport(bool support)
|
||||
{
|
||||
if (support)
|
||||
{
|
||||
m_dvSerialSupport = m_dvSerialEngine.scan();
|
||||
}
|
||||
else
|
||||
{
|
||||
m_dvSerialEngine.release();
|
||||
m_dvSerialSupport = false;
|
||||
}
|
||||
}
|
||||
#else
|
||||
void DSPEngine::setDVSerialSupport(bool support)
|
||||
{ (void) support; }
|
||||
#endif
|
||||
|
||||
bool DSPEngine::hasDVSerialSupport()
|
||||
{
|
||||
#ifdef DSD_USE_SERIALDV
|
||||
return m_dvSerialSupport;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
return m_ambeEngine.getNbDevices() > 0;
|
||||
}
|
||||
|
||||
#ifdef DSD_USE_SERIALDV
|
||||
void DSPEngine::setDVSerialSupport(bool support)
|
||||
{ (void) support; }
|
||||
|
||||
void DSPEngine::getDVSerialNames(std::vector<std::string>& deviceNames)
|
||||
{
|
||||
m_dvSerialEngine.getDevicesNames(deviceNames);
|
||||
}
|
||||
#else
|
||||
void DSPEngine::getDVSerialNames(std::vector<std::string>& deviceNames)
|
||||
{ (void) deviceNames; }
|
||||
#endif
|
||||
std::vector<QString> qDeviceRefs;
|
||||
m_ambeEngine.getDeviceRefs(qDeviceRefs);
|
||||
deviceNames.clear();
|
||||
|
||||
for (std::vector<QString>::const_iterator it = qDeviceRefs.begin(); it != qDeviceRefs.end(); ++it) {
|
||||
deviceNames.push_back(it->toStdString());
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DSD_USE_SERIALDV
|
||||
void DSPEngine::pushMbeFrame(
|
||||
const unsigned char *mbeFrame,
|
||||
int mbeRateIndex,
|
||||
@@ -202,24 +183,5 @@ void DSPEngine::pushMbeFrame(
|
||||
int upsampling,
|
||||
AudioFifo *audioFifo)
|
||||
{
|
||||
m_dvSerialEngine.pushMbeFrame(mbeFrame, mbeRateIndex, mbeVolumeIndex, channels, useHP, upsampling, audioFifo);
|
||||
m_ambeEngine.pushMbeFrame(mbeFrame, mbeRateIndex, mbeVolumeIndex, channels, useHP, upsampling, audioFifo);
|
||||
}
|
||||
#else
|
||||
void DSPEngine::pushMbeFrame(
|
||||
const unsigned char *mbeFrame,
|
||||
int mbeRateIndex,
|
||||
int mbeVolumeIndex,
|
||||
unsigned char channels,
|
||||
bool useHP,
|
||||
int upsampling,
|
||||
AudioFifo *audioFifo)
|
||||
{
|
||||
(void) mbeFrame;
|
||||
(void) mbeRateIndex;
|
||||
(void) mbeVolumeIndex;
|
||||
(void) channels;
|
||||
(void) useHP;
|
||||
(void) upsampling;
|
||||
(void) audioFifo;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user