AndroidMidiFallback.java 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. //==============================================================================
  2. public class BluetoothManager
  3. {
  4. BluetoothManager()
  5. {
  6. }
  7. public String[] getMidiBluetoothAddresses()
  8. {
  9. String[] bluetoothAddresses = new String[0];
  10. return bluetoothAddresses;
  11. }
  12. public String getHumanReadableStringForBluetoothAddress (String address)
  13. {
  14. return address;
  15. }
  16. public boolean isBluetoothDevicePaired (String address)
  17. {
  18. return false;
  19. }
  20. public boolean pairBluetoothMidiDevice(String address)
  21. {
  22. return false;
  23. }
  24. public void unpairBluetoothMidiDevice (String address)
  25. {
  26. }
  27. }
  28. //==============================================================================
  29. public class MidiDeviceManager
  30. {
  31. public MidiDeviceManager()
  32. {
  33. }
  34. public String[] getJuceAndroidMidiInputDevices()
  35. {
  36. return new String[0];
  37. }
  38. public String[] getJuceAndroidMidiOutputDevices()
  39. {
  40. return new String[0];
  41. }
  42. public JuceMidiPort openMidiInputPortWithJuceIndex (int index, long host)
  43. {
  44. return null;
  45. }
  46. public JuceMidiPort openMidiOutputPortWithJuceIndex (int index)
  47. {
  48. return null;
  49. }
  50. public String getInputPortNameForJuceIndex (int index)
  51. {
  52. return "";
  53. }
  54. public String getOutputPortNameForJuceIndex (int index)
  55. {
  56. return "";
  57. }
  58. }
  59. public MidiDeviceManager getAndroidMidiDeviceManager()
  60. {
  61. return null;
  62. }
  63. public BluetoothManager getAndroidBluetoothManager()
  64. {
  65. return null;
  66. }