mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
ps3/android: Remove rtmidi
This commit is contained in:
parent
6129723f09
commit
80e27d9dcf
7
3rdparty/CMakeLists.txt
vendored
7
3rdparty/CMakeLists.txt
vendored
|
|
@ -378,7 +378,12 @@ endif()
|
|||
add_subdirectory(miniupnp EXCLUDE_FROM_ALL)
|
||||
|
||||
# RTMIDI
|
||||
add_subdirectory(rtmidi EXCLUDE_FROM_ALL)
|
||||
if(NOT ANDROID)
|
||||
add_subdirectory(rtmidi EXCLUDE_FROM_ALL)
|
||||
else()
|
||||
add_library(rtmidi INTERFACE)
|
||||
target_compile_definitions(rtmidi INTERFACE WITHOUT_RTMIDI)
|
||||
endif()
|
||||
|
||||
# OPENCV
|
||||
add_subdirectory(opencv EXCLUDE_FROM_ALL)
|
||||
|
|
|
|||
|
|
@ -537,6 +537,7 @@ usb_handler_thread::usb_handler_thread()
|
|||
usb_devices.push_back(std::make_shared<usb_device_vfs>(usb_info, get_new_location()));
|
||||
}
|
||||
|
||||
#ifndef WITHOUT_RTMIDI
|
||||
const std::vector<std::string> devices_list = fmt::split(g_cfg.io.midi_devices.to_string(), {"@@@"});
|
||||
for (usz index = 0; index < std::min(max_midi_devices, devices_list.size()); index++)
|
||||
{
|
||||
|
|
@ -569,6 +570,7 @@ usb_handler_thread::usb_handler_thread()
|
|||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
usb_handler_thread::~usb_handler_thread()
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
// Rock Band 3 MIDI Pro Adapter Emulator (drums Mode)
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
#ifndef WITHOUT_RTMIDI
|
||||
#include "RB3MidiDrums.h"
|
||||
#include "Emu/Cell/lv2/sys_usbd.h"
|
||||
#include "Emu/Io/rb3drums_config.h"
|
||||
|
|
@ -838,3 +840,5 @@ std::optional<rb3drums::KitState> usb_device_rb3_midi_drums::ComboTracker::take_
|
|||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#ifndef WITHOUT_RTMIDI
|
||||
|
||||
#include "Emu/Io/usb_device.h"
|
||||
|
||||
#include <rtmidi_c.h>
|
||||
|
|
@ -155,3 +157,5 @@ private:
|
|||
bool is_midi_cc(u8 id, u8 value);
|
||||
void write_state(u8* buf, const rb3drums::KitState&);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
// Rock Band 3 MIDI Pro Adapter Emulator (Guitar Mode)
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
#ifndef WITHOUT_RTMIDI
|
||||
|
||||
#include "RB3MidiGuitar.h"
|
||||
#include "Emu/Cell/lv2/sys_usbd.h"
|
||||
|
||||
|
|
@ -370,3 +373,5 @@ void usb_device_rb3_midi_guitar::write_state(u8* buf)
|
|||
|
||||
buf[2] = button_state.dpad;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#ifndef WITHOUT_RTMIDI
|
||||
|
||||
#include "Emu/Io/usb_device.h"
|
||||
|
||||
#include <rtmidi_c.h>
|
||||
|
|
@ -42,3 +44,5 @@ public:
|
|||
void control_transfer(u8 bmRequestType, u8 bRequest, u16 wValue, u16 wIndex, u16 wLength, u32 buf_size, u8* buf, UsbTransfer* transfer) override;
|
||||
void interrupt_transfer(u32 buf_size, u8* buf, u32 endpoint, UsbTransfer* transfer) override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
// Rock Band 3 MIDI Pro Adapter Emulator (Keyboard Mode)
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
#ifndef WITHOUT_RTMIDI
|
||||
#include "RB3MidiKeyboard.h"
|
||||
#include "Emu/Cell/lv2/sys_usbd.h"
|
||||
|
||||
|
|
@ -355,3 +356,5 @@ void usb_device_rb3_midi_keyboard::write_state(u8* buf)
|
|||
buf[15] = std::min<u8>(std::max<u8>(0x5, wheel_pos), 0x75);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#ifndef WITHOUT_RTMIDI
|
||||
|
||||
#include "Emu/Io/usb_device.h"
|
||||
|
||||
#include <rtmidi_c.h>
|
||||
|
|
@ -47,3 +49,4 @@ public:
|
|||
void control_transfer(u8 bmRequestType, u8 bRequest, u16 wValue, u16 wIndex, u16 wLength, u32 buf_size, u8* buf, UsbTransfer* transfer) override;
|
||||
void interrupt_transfer(u32 buf_size, u8* buf, u32 endpoint, UsbTransfer* transfer) override;
|
||||
};
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue