mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-18 11:35:21 -04:00
Support AE-5 and AE-5 Plus on Windows
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
/*---------------------------------------------------------*\
|
||||
| CreativeSoundBlasterAE5ControllerDetect_Windows.cpp |
|
||||
| |
|
||||
| Detector for Creative SoundBlaster AE-5 (Windows) |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-or-later |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "Detector.h"
|
||||
#include "CreativeSoundBlasterAE5Controller_Windows.h"
|
||||
#include "RGBController_CreativeSoundBlasterAE5_Windows.h"
|
||||
#include "LogManager.h"
|
||||
|
||||
void DetectCreativeAE5Device()
|
||||
{
|
||||
LOG_INFO("[Creative SoundBlaster AE-5] Windows detection function called");
|
||||
|
||||
CreativeSoundBlasterAE5Controller_Windows* controller = new CreativeSoundBlasterAE5Controller_Windows();
|
||||
|
||||
if(controller->Initialize())
|
||||
{
|
||||
LOG_INFO("[Creative SoundBlaster AE-5] Device initialized successfully, registering controller");
|
||||
RGBController_CreativeSoundBlasterAE5* rgb_controller = new RGBController_CreativeSoundBlasterAE5(controller);
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG_WARNING("[Creative SoundBlaster AE-5] Device initialization failed");
|
||||
delete controller;
|
||||
}
|
||||
}
|
||||
|
||||
REGISTER_DETECTOR("Creative SoundBlaster AE-5", DetectCreativeAE5Device);
|
||||
Reference in New Issue
Block a user