mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-04 23:14:47 -04:00
Pass device item index to the device API when creating or assigning a new device
This commit is contained in:
@@ -27,6 +27,7 @@ DeviceSourceAPI::DeviceSourceAPI(int deviceTabIndex,
|
||||
m_deviceTabIndex(deviceTabIndex),
|
||||
m_deviceSourceEngine(deviceSourceEngine),
|
||||
m_sampleSourceSequence(0),
|
||||
m_itemIndex(0),
|
||||
m_pluginInterface(0),
|
||||
m_sampleSourcePluginInstanceUI(0),
|
||||
m_buddySharedPtr(0),
|
||||
@@ -151,6 +152,11 @@ void DeviceSourceAPI::setSampleSourceSequence(int sequence)
|
||||
m_deviceSourceEngine->setSourceSequence(sequence);
|
||||
}
|
||||
|
||||
void DeviceSourceAPI::setItemIndex(uint32_t index)
|
||||
{
|
||||
m_itemIndex = index;
|
||||
}
|
||||
|
||||
void DeviceSourceAPI::setSampleSourcePluginInterface(PluginInterface *iface)
|
||||
{
|
||||
m_pluginInterface = iface;
|
||||
|
||||
Reference in New Issue
Block a user