Commit b10932cf authored by MONSEIGNE Thibaut's avatar MONSEIGNE Thibaut

Fix: Coding Rules Redundancies in code category

parent 9d26b6d3
......@@ -14,4 +14,4 @@ namespace OpenViBESSVEP
void execute(int iButton, int iState) override;
};
} // namespace OpenViBESSVEP
} // namespace OpenViBESSVEP
......@@ -19,4 +19,4 @@ namespace OpenViBESSVEP
private:
CVRPNServer* m_poVRPNServer = nullptr;
};
} // namespace OpenViBESSVEP
} // namespace OpenViBESSVEP
......@@ -32,4 +32,4 @@ namespace OpenViBESSVEP
CStarShip* m_poShip = nullptr;
std::vector<CShooterTarget*> m_oTargets;
};
} // namespace OpenViBESSVEP
} // namespace OpenViBESSVEP
......@@ -26,4 +26,4 @@ namespace OpenViBESSVEP
CShooterTarget(Ogre::Radian rAngle);
};
} // namespace OpenViBESSVEP
} // namespace OpenViBESSVEP
......@@ -35,4 +35,4 @@ namespace OpenViBESSVEP
bool m_bIsShooting = false;
Ogre::Real m_rShotDistance;
};
} // namespace OpenViBESSVEP
} // namespace OpenViBESSVEP
......@@ -14,4 +14,4 @@ namespace OpenViBESSVEP
void execute(int iButton, int iState) override;
};
} // namespace OpenViBESSVEP
} // namespace OpenViBESSVEP
......@@ -33,4 +33,4 @@ namespace OpenViBESSVEP
CEGUI::Window* m_poInstructionsReady = nullptr;
};
} // namespace OpenViBESSVEP
} // namespace OpenViBESSVEP
......@@ -39,4 +39,4 @@ namespace OpenViBESSVEP
Ogre::SceneNode* m_poElementNode = nullptr;
Ogre::MovableObject* m_poPointer = nullptr;
};
} // namespace OpenViBESSVEP
} // namespace OpenViBESSVEP
......@@ -83,4 +83,4 @@ namespace OpenViBESSVEP
Ogre::uint32 m_ui32WindowWidth;
Ogre::uint32 m_ui32WindowHeight;
};
} // namespace OpenViBESSVEP
} // namespace OpenViBESSVEP
......@@ -40,4 +40,4 @@ namespace OpenViBESSVEP
Ogre::SceneManager* m_poSceneManager = nullptr;
Ogre::AxisAlignedBox m_oAABInf;
};
} // namespace OpenViBESSVEP
} // namespace OpenViBESSVEP
......@@ -20,4 +20,4 @@ namespace OpenViBESSVEP
private:
CVRPNServer* m_poVRPNServer = nullptr;
};
} // namespace OpenViBESSVEP
} // namespace OpenViBESSVEP
......@@ -12,4 +12,4 @@ namespace OpenViBESSVEP
void execute(int iButton, int iState) override;
};
} // namespace OpenViBESSVEP
} // namespace OpenViBESSVEP
......@@ -25,4 +25,4 @@ namespace OpenViBESSVEP
bool m_bVisible = true;
};
} // namespace OpenViBESSVEP
} // namespace OpenViBESSVEP
......@@ -36,4 +36,4 @@ namespace OpenViBESSVEP
std::map<std::string, vrpn_Button_Server*> m_oButtonServer;
std::map<std::string, std::vector<int>> m_oButtonCache;
};
} // namespace OpenViBESSVEP
} // namespace OpenViBESSVEP
......@@ -19,4 +19,4 @@ namespace OpenViBESSVEP
protected:
CApplication* m_poApplication = nullptr;
};
} // namespace OpenViBESSVEP
} // namespace OpenViBESSVEP
......@@ -31,4 +31,4 @@ namespace OpenViBESSVEP
bool keyPressed(const OIS::KeyEvent& oEvent) override;
bool keyReleased(const OIS::KeyEvent& oEvent) override;
};
} // namespace OpenViBESSVEP
} // namespace OpenViBESSVEP
......@@ -18,4 +18,4 @@ namespace OpenViBESSVEP
protected:
vrpn_Button_Remote* m_poVRPNButton = nullptr;
};
} // namespace OpenViBESSVEP
} // namespace OpenViBESSVEP
......@@ -33,4 +33,4 @@ namespace OpenViBESSVEPMindShooter
CEGUI::Window* m_poInstructionsReady = nullptr;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -39,4 +39,4 @@ namespace OpenViBESSVEPMindShooter
Ogre::SceneNode* m_elementNode = nullptr;
Ogre::MovableObject* m_pointer = nullptr;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -30,4 +30,4 @@ namespace OpenViBESSVEPMindShooter
bool m_bInControl = false;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -19,4 +19,4 @@ namespace OpenViBESSVEPMindShooter
protected:
bool m_bInControl = false;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -23,4 +23,4 @@ namespace OpenViBESSVEPMindShooter
private:
std::map<OIS::KeyCode, bool> m_vKeyPressed;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -20,4 +20,4 @@ namespace OpenViBESSVEPMindShooter
private:
CVRPNServer* m_poVRPNServer = nullptr;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -19,4 +19,4 @@ namespace OpenViBESSVEPMindShooter
private:
CVRPNServer* m_poVRPNServer = nullptr;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -91,4 +91,4 @@ namespace OpenViBESSVEPMindShooter
std::vector<CImpactEnemyShip*> m_oTargets;
int m_iScore = 0;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -58,4 +58,4 @@ namespace OpenViBESSVEPMindShooter
static int m_currentExplosionCount;
std::vector<struct explosion_animation*> m_explosions;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -85,4 +85,4 @@ namespace OpenViBESSVEPMindShooter
Ogre::Real m_origin = 0.0;
Ogre::Real m_oldPosition = 0;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -58,5 +58,5 @@ namespace OpenViBE
FILE* m_f = nullptr;
};
} // namespace Kernel
} // namespace OpenViBE
} // namespace Kernel
} // namespace OpenViBE
......@@ -110,4 +110,4 @@ namespace OpenViBESSVEPMindShooter
Ogre::uint32 m_windowWidth = 0;
Ogre::uint32 m_windowHeight = 0;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -42,4 +42,4 @@ namespace OpenViBESSVEPMindShooter
Ogre::SceneManager* m_sceneManager = nullptr;
Ogre::AxisAlignedBox m_aabInf;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -26,4 +26,4 @@ namespace OpenViBESSVEPMindShooter
bool m_bCameraMode = false;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -14,4 +14,4 @@ namespace OpenViBESSVEPMindShooter
void execute(int iButton, int iState) override;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -21,4 +21,4 @@ namespace OpenViBESSVEPMindShooter
private:
CVRPNServer* m_poVRPNServer = nullptr;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -12,4 +12,4 @@ namespace OpenViBESSVEPMindShooter
void execute(int iButton, int iState) override;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -28,4 +28,4 @@ namespace OpenViBESSVEPMindShooter
bool m_bVisible = true;
int m_iId = 0;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -36,4 +36,4 @@ namespace OpenViBESSVEPMindShooter
std::map<std::string, vrpn_Button_Server*> m_oButtonServer;
std::map<std::string, std::vector<int>> m_oButtonCache;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -20,4 +20,4 @@ namespace OpenViBESSVEPMindShooter
protected:
CApplication* m_poApplication = nullptr;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -37,4 +37,4 @@ namespace OpenViBESSVEPMindShooter
bool mousePressed(const OIS::MouseEvent& arg, OIS::MouseButtonID id) override { return true; }
bool mouseReleased(const OIS::MouseEvent& arg, OIS::MouseButtonID id) override { return true; }
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -18,4 +18,4 @@ namespace OpenViBESSVEPMindShooter
protected:
vrpn_Analog_Remote* m_poVRPNAnalog = nullptr;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -18,4 +18,4 @@ namespace OpenViBESSVEPMindShooter
protected:
vrpn_Button_Remote* m_poVRPNButton = nullptr;
};
} // namespace OpenViBESSVEPMindShooter
} // namespace OpenViBESSVEPMindShooter
......@@ -57,9 +57,9 @@ namespace OpenViBEPlugins
// For example, if your box has a variable number of input, but all of them must be stimulation inputs.
// The following listener callback will ensure that any newly added input is stimulations :
/*
virtual bool onInputAdded(OpenViBE::Kernel::IBox& rBox, const uint32_t ui32Index)
virtual bool onInputAdded(OpenViBE::Kernel::IBox& rBox, const uint32_t index)
{
rBox.setInputType(ui32Index, OV_TypeId_Stimulations);
rBox.setInputType(index, OV_TypeId_Stimulations);
};
*/
......@@ -72,24 +72,24 @@ namespace OpenViBEPlugins
//virtual bool onInitialized(OpenViBE::Kernel::IBox& rBox) { return true; };
//virtual bool onNameChanged(OpenViBE::Kernel::IBox& rBox) { return true; };
@@BoxListenerOnInputConnectedComment@@virtual bool onInputConnected(OpenViBE::Kernel::IBox& rBox, const uint32_t ui32Index) { return true; };
@@BoxListenerOnInputDisconnectedComment@@virtual bool onInputDisconnected(OpenViBE::Kernel::IBox& rBox, const uint32_t ui32Index) { return true; };
@@BoxListenerOnInputAddedComment@@virtual bool onInputAdded(OpenViBE::Kernel::IBox& rBox, const uint32_t ui32Index) { return true; };
@@BoxListenerOnInputRemovedComment@@virtual bool onInputRemoved(OpenViBE::Kernel::IBox& rBox, const uint32_t ui32Index) { return true; };
@@BoxListenerOnInputTypeChangedComment@@virtual bool onInputTypeChanged(OpenViBE::Kernel::IBox& rBox, const uint32_t ui32Index) { return true; };
@@BoxListenerOnInputNameChangedComment@@virtual bool onInputNameChanged(OpenViBE::Kernel::IBox& rBox, const uint32_t ui32Index) { return true; };
@@BoxListenerOnOutputConnectedComment@@virtual bool onOutputConnected(OpenViBE::Kernel::IBox& rBox, const uint32_t ui32Index) { return true; };
@@BoxListenerOnOutputDisconnectedComment@@virtual bool onOutputDisconnected(OpenViBE::Kernel::IBox& rBox, const uint32_t ui32Index) { return true; };
@@BoxListenerOnOutputAddedComment@@virtual bool onOutputAdded(OpenViBE::Kernel::IBox& rBox, const uint32_t ui32Index) { return true; };
@@BoxListenerOnOutputRemovedComment@@virtual bool onOutputRemoved(OpenViBE::Kernel::IBox& rBox, const uint32_t ui32Index) { return true; };
@@BoxListenerOnOutputTypeChangedComment@@virtual bool onOutputTypeChanged(OpenViBE::Kernel::IBox& rBox, const uint32_t ui32Index) { return true; };
@@BoxListenerOnOutputNameChangedComment@@virtual bool onOutputNameChanged(OpenViBE::Kernel::IBox& rBox, const uint32_t ui32Index) { return true; };
@@BoxListenerOnSettingAddedComment@@virtual bool onSettingAdded(OpenViBE::Kernel::IBox& rBox, const uint32_t ui32Index) { return true; };
@@BoxListenerOnSettingRemovedComment@@virtual bool onSettingRemoved(OpenViBE::Kernel::IBox& rBox, const uint32_t ui32Index) { return true; };
@@BoxListenerOnSettingTypeChangedComment@@virtual bool onSettingTypeChanged(OpenViBE::Kernel::IBox& rBox, const uint32_t ui32Index) { return true; };
@@BoxListenerOnSettingNameChangedComment@@virtual bool onSettingNameChanged(OpenViBE::Kernel::IBox& rBox, const uint32_t ui32Index) { return true; };
@@BoxListenerOnSettingDefaultValueChangedComment@@virtual bool onSettingDefaultValueChanged(OpenViBE::Kernel::IBox& rBox, const uint32_t ui32Index) { return true; };
@@BoxListenerOnSettingValueChangedComment@@virtual bool onSettingValueChanged(OpenViBE::Kernel::IBox& rBox, const uint32_t ui32Index) { return true; };
@@BoxListenerOnInputConnectedComment@@virtual bool onInputConnected(OpenViBE::Kernel::IBox& rBox, const uint32_t index) { return true; };
@@BoxListenerOnInputDisconnectedComment@@virtual bool onInputDisconnected(OpenViBE::Kernel::IBox& rBox, const uint32_t index) { return true; };
@@BoxListenerOnInputAddedComment@@virtual bool onInputAdded(OpenViBE::Kernel::IBox& rBox, const uint32_t index) { return true; };
@@BoxListenerOnInputRemovedComment@@virtual bool onInputRemoved(OpenViBE::Kernel::IBox& rBox, const uint32_t index) { return true; };
@@BoxListenerOnInputTypeChangedComment@@virtual bool onInputTypeChanged(OpenViBE::Kernel::IBox& rBox, const uint32_t index) { return true; };
@@BoxListenerOnInputNameChangedComment@@virtual bool onInputNameChanged(OpenViBE::Kernel::IBox& rBox, const uint32_t index) { return true; };
@@BoxListenerOnOutputConnectedComment@@virtual bool onOutputConnected(OpenViBE::Kernel::IBox& rBox, const uint32_t index) { return true; };
@@BoxListenerOnOutputDisconnectedComment@@virtual bool onOutputDisconnected(OpenViBE::Kernel::IBox& rBox, const uint32_t index) { return true; };
@@BoxListenerOnOutputAddedComment@@virtual bool onOutputAdded(OpenViBE::Kernel::IBox& rBox, const uint32_t index) { return true; };
@@BoxListenerOnOutputRemovedComment@@virtual bool onOutputRemoved(OpenViBE::Kernel::IBox& rBox, const uint32_t index) { return true; };
@@BoxListenerOnOutputTypeChangedComment@@virtual bool onOutputTypeChanged(OpenViBE::Kernel::IBox& rBox, const uint32_t index) { return true; };
@@BoxListenerOnOutputNameChangedComment@@virtual bool onOutputNameChanged(OpenViBE::Kernel::IBox& rBox, const uint32_t index) { return true; };
@@BoxListenerOnSettingAddedComment@@virtual bool onSettingAdded(OpenViBE::Kernel::IBox& rBox, const uint32_t index) { return true; };
@@BoxListenerOnSettingRemovedComment@@virtual bool onSettingRemoved(OpenViBE::Kernel::IBox& rBox, const uint32_t index) { return true; };
@@BoxListenerOnSettingTypeChangedComment@@virtual bool onSettingTypeChanged(OpenViBE::Kernel::IBox& rBox, const uint32_t index) { return true; };
@@BoxListenerOnSettingNameChangedComment@@virtual bool onSettingNameChanged(OpenViBE::Kernel::IBox& rBox, const uint32_t index) { return true; };
@@BoxListenerOnSettingDefaultValueChangedComment@@virtual bool onSettingDefaultValueChanged(OpenViBE::Kernel::IBox& rBox, const uint32_t index) { return true; };
@@BoxListenerOnSettingValueChangedComment@@virtual bool onSettingValueChanged(OpenViBE::Kernel::IBox& rBox, const uint32_t index) { return true; };
_IsDerivedFromClass_Final_(OpenViBEToolkit::TBoxListener < OpenViBE::Plugins::IBoxListener >, OV_UndefinedIdentifier)
};
......@@ -144,7 +144,5 @@ namespace OpenViBEPlugins
}
_IsDerivedFromClass_Final_(OpenViBE::Plugins::IBoxAlgorithmDesc, OVP_ClassId_BoxAlgorithm_@@ClassName@@Desc)
};
};
};
} // namespace @@Namespace@@
} // namespace OpenViBEPlugins
......@@ -66,4 +66,4 @@ namespace OpenViBEAcquisitionServer
const OpenViBE::Kernel::IKernelContext& m_kernelContext;
SettingsHelper m_oSettingsHelper;
};
} // namespace OpenViBEAcquisitionServer
} // namespace OpenViBEAcquisitionServer
......@@ -509,4 +509,4 @@ namespace OpenViBEAcquisitionServer
*/
IDriver();
};
} // namespace OpenViBEAcquisitionServer
} // namespace OpenViBEAcquisitionServer
......@@ -320,4 +320,4 @@ namespace OpenViBEAcquisitionServer
}
}
};
} // namespace OpenViBEAcquisitionServer
} // namespace OpenViBEAcquisitionServer
......@@ -189,7 +189,7 @@ namespace BioSemi
static unsigned int g_ActiveTwoMarkII_EXChannelPerSample[BIOSEMI_ACTIVETWO_SPEEDMODECOUNT] = { 8, 8, 8, 8, 8, 8, 8, 8, 8, 8 };
static unsigned int* g_ActiveTwoMark_EXChannelPerSample[2] = { g_ActiveTwoMarkI_EXChannelPerSample, g_ActiveTwoMarkII_EXChannelPerSample };
} // namespace BioSemi
} // namespace BioSemi
//___________________________________________________________________//
// //
......@@ -519,10 +519,7 @@ bool CBridgeBioSemiActiveTwo::discard()
unsigned int CBridgeBioSemiActiveTwo::getAvailableByteCount()
{
if (m_uiLastRingBufferByteIndex > m_uiConsumptionByteIndex) { return m_uiLastRingBufferByteIndex - m_uiConsumptionByteIndex; }
else
{
return m_uiLastRingBufferByteIndex + (BIOSEMI_ACTIVETWO_RINGBUFFERBYTES - m_uiConsumptionByteIndex);
}
return m_uiLastRingBufferByteIndex + (BIOSEMI_ACTIVETWO_RINGBUFFERBYTES - m_uiConsumptionByteIndex);
}
unsigned int CBridgeBioSemiActiveTwo::getAvailableSampleCount()
......@@ -674,8 +671,7 @@ unsigned int CBridgeBioSemiActiveTwo::getElectrodeChannelCount()
unsigned int CBridgeBioSemiActiveTwo::getEXChannelCount()
{
if (!m_bUseEXChannels) return 0;
else if (!m_bBridgeSyncedWithDevice) return 0;
if (!m_bUseEXChannels || !m_bBridgeSyncedWithDevice) return 0;
// this will be rounded
return (BioSemi::g_ActiveTwoMark_EXChannelPerSample[(m_bActiveTwoMarkII ? 1 : 0)][m_uiSpeedMode]);
}
......
......@@ -130,7 +130,7 @@ namespace Mensia
unsigned int m_uiLastError = 0;
bool m_bUseEXChannels = false;
};
} // namespace Mensia
} // namespace Mensia
#endif // TARGET_HAS_ThirdPartyBioSemiAPI
......@@ -53,14 +53,11 @@ namespace
gtk_combo_box_set_active(pComboBox, l_iIndex);
return;
}
else
{
l_iIndex++;
}
l_iIndex++;
} while (gtk_tree_model_iter_next(l_pTreeModel, &itComboEntry));
}
}
} // namespace
} // namespace
CConfigurationBioSemiActiveTwo::CConfigurationBioSemiActiveTwo(const char* sGtkBuilderFileName, bool& rUseEXChannels)
......
......@@ -43,7 +43,7 @@ namespace OpenViBEAcquisitionServer
protected:
bool& m_rUseEXChannels;
};
} // namespace OpenViBEAcquisitionServer
} // namespace OpenViBEAcquisitionServer
#endif // TARGET_HAS_ThirdPartyBioSemiAPI
......@@ -56,7 +56,7 @@ namespace OpenViBEAcquisitionServer
bool m_bIsCMSInRange = false;
bool m_bIsBatteryLow = false;
std::string m_sErrorMessage = "";
public:
// The window is changed in a idle loop in function of m_bIsCMSInRange,
// m_bIsBatteryLow and m_sErrorMessage that change in the driver loop
// A mutex is necessary to secure the access to the data
......@@ -123,7 +123,7 @@ namespace OpenViBEAcquisitionServer
SInformationWindow* m_pInformationWindow = nullptr;
};
} // namespace OpenViBEAcquisitionServer
} // namespace OpenViBEAcquisitionServer
#endif // TARGET_HAS_ThirdPartyBioSemiAPI
......@@ -39,7 +39,7 @@ namespace
{
reinterpret_cast<CConfigurationBrainProductsActiCHamp*>(pUserData)->buttonAuxChannelsToggledCB(gtk_toggle_button_get_active(pToggleButton) != 0);
}
} // namespace
} // namespace
CConfigurationBrainProductsActiCHamp::CConfigurationBrainProductsActiCHamp(
const char* sGtkBuilderFileName, uint32_t& rDeviceId, uint32_t& rMode, uint32_t& rPhysicalSampleRate, uint32_t& rADCDataFilter,
......
......@@ -64,6 +64,6 @@ namespace OpenViBEAcquisitionServer
GtkToggleButton* m_pToggleModule4 = nullptr;
GtkToggleButton* m_pToggleModule5 = nullptr;
};
} // namespace OpenViBEAcquisitionServer
} // namespace OpenViBEAcquisitionServer
#endif // TARGET_HAS_ThirdPartyActiCHampAPI
......@@ -125,7 +125,7 @@ namespace
fclose(l_pFile);
return true;
}
} // namespace
} // namespace
CDriverBrainProductsActiCHamp::CDriverBrainProductsActiCHamp(IDriverContext& rDriverContext)
: IDriver(rDriverContext), m_ui32Mode(CHAMP_MODE_ACTIVE_SHIELD), m_ui32ADCDataDecimation(CHAMP_DECIMATION_2)
......
......@@ -93,6 +93,6 @@ namespace OpenViBEAcquisitionServer
bool m_bMyButtonstate = false;
};
} // namespace OpenViBEAcquisitionServer
} // namespace OpenViBEAcquisitionServer
#endif // TARGET_HAS_ThirdPartyActiCHampAPI
......@@ -77,7 +77,7 @@ namespace
CConfigurationBrainProductsBrainampSeries* l_pConfiguration = static_cast<CConfigurationBrainProductsBrainampSeries*>(pUserData);
l_pConfiguration->comboBoxDeviceChangedCB();
}
} // namespace
} // namespace
CConfigurationBrainProductsBrainampSeries::CConfigurationBrainProductsBrainampSeries(
CDriverBrainProductsBrainampSeries& rDriver, const char* sGtkBuilderFileName, uint32_t& rUSBIndex, uint32_t& rui32DecimationFactor,
......
......@@ -68,6 +68,6 @@ namespace OpenViBEAcquisitionServer
GtkWidget* m_pCalibrateDialog = nullptr;
bool m_bCalibrationDone = false;
};
} // namespace OpenViBEAcquisitionServer
} // namespace OpenViBEAcquisitionServer
#endif // TARGET_OS_Windows
......@@ -617,10 +617,10 @@ bool CDriverBrainProductsBrainampSeries::configure()
return true;
}
bool CDriverBrainProductsBrainampSeries::getDeviceDetails(const uint32_t ui32Index, uint32_t* pAmplifierCount, uint32_t* pAmplifierType)
bool CDriverBrainProductsBrainampSeries::getDeviceDetails(const uint32_t index, uint32_t* pAmplifierCount, uint32_t* pAmplifierType)
{
char l_sDeviceName[1024];
sprintf(l_sDeviceName, "\\\\.\\BrainAmpUSB%i", ui32Index);
sprintf(l_sDeviceName, "\\\\.\\BrainAmpUSB%i", index);
// -- Opens device
......