mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
bluez5: implement Bluetooth MIDI device enumeration
Add monitor for enumerating connected Bluetooth MIDI devices.
This commit is contained in:
parent
a07dfbbdb9
commit
931e8da3ea
5 changed files with 827 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ extern const struct spa_handle_factory spa_sco_sink_factory;
|
|||
extern const struct spa_handle_factory spa_sco_source_factory;
|
||||
extern const struct spa_handle_factory spa_a2dp_sink_factory;
|
||||
extern const struct spa_handle_factory spa_a2dp_source_factory;
|
||||
extern const struct spa_handle_factory spa_bluez5_midi_enum_factory;
|
||||
|
||||
SPA_EXPORT
|
||||
int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t *index)
|
||||
|
|
@ -67,6 +68,9 @@ int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t
|
|||
case 7:
|
||||
*factory = &spa_a2dp_source_factory;
|
||||
break;
|
||||
case 8:
|
||||
*factory = &spa_bluez5_midi_enum_factory;
|
||||
break;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue