mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
alsa: add midi bridge
Add a node that exposes all midi input and output ports and converts to and from PipeWire control streams.
This commit is contained in:
parent
ab0d1b7fad
commit
818fb9e904
7 changed files with 1895 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ extern const struct spa_handle_factory spa_alsa_source_factory;
|
|||
extern const struct spa_handle_factory spa_alsa_sink_factory;
|
||||
extern const struct spa_handle_factory spa_alsa_monitor_factory;
|
||||
extern const struct spa_handle_factory spa_alsa_device_factory;
|
||||
extern const struct spa_handle_factory spa_alsa_midi_source_factory;
|
||||
|
||||
SPA_EXPORT
|
||||
int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t *index)
|
||||
|
|
@ -50,6 +51,9 @@ int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t
|
|||
case 3:
|
||||
*factory = &spa_alsa_device_factory;
|
||||
break;
|
||||
case 4:
|
||||
*factory = &spa_alsa_midi_source_factory;
|
||||
break;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue