mic: fix some warnings

This commit is contained in:
Megamouse
2026-09-28 12:27:27 +02:00
parent 9a8a66a29c
commit 105c4988f0
2 changed files with 3 additions and 19 deletions
+2 -15
View File
@@ -200,6 +200,8 @@ usb_device_mic::usb_device_mic(u32 controller_index, const std::array<u8, 7>& lo
break;
}
case MicType::Logitech:
case MicType::EyeToy:
case MicType::PsEye:
{
device = UsbDescriptorNode(USB_DESCRIPTOR_DEVICE,
UsbDeviceDescriptor {
@@ -501,21 +503,6 @@ usb_device_mic::usb_device_mic(u32 controller_index, const std::array<u8, 7>& lo
}
}
std::shared_ptr<usb_device> usb_device_mic::make_singstar(u32 controller_index, const std::array<u8, 7>& location)
{
return std::make_shared<usb_device_mic>(controller_index, location, MicType::SingStar);
}
std::shared_ptr<usb_device> usb_device_mic::make_logitech(u32 controller_index, const std::array<u8, 7>& location)
{
return std::make_shared<usb_device_mic>(controller_index, location, MicType::Logitech);
}
std::shared_ptr<usb_device> usb_device_mic::make_rocksmith(u32 controller_index, const std::array<u8, 7>& location)
{
return std::make_shared<usb_device_mic>(controller_index, location, MicType::Rocksmith);
}
u16 usb_device_mic::get_num_emu_devices()
{
return 1;
+1 -4
View File
@@ -25,10 +25,7 @@ class usb_device_mic : public usb_device_emulated
{
public:
usb_device_mic(u32 controller_index, const std::array<u8, 7>& location, MicType mic_type);
static std::shared_ptr<usb_device> make_singstar(u32 controller_index, const std::array<u8, 7>& location);
static std::shared_ptr<usb_device> make_logitech(u32 controller_index, const std::array<u8, 7>& location);
static std::shared_ptr<usb_device> make_rocksmith(u32 controller_index, const std::array<u8, 7>& location);
static u16 get_num_emu_devices();
void control_transfer(u8 bmRequestType, u8 bRequest, u16 wValue, u16 wIndex, u16 wLength, u32 buf_size, u8* buf, UsbTransfer* transfer) override;