mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
alsa: aad alsa source and monitor
This commit is contained in:
parent
2bf322ee71
commit
bd7009756c
12 changed files with 707 additions and 567 deletions
|
|
@ -20,7 +20,9 @@
|
|||
#include <spa/plugin.h>
|
||||
#include <spa/node.h>
|
||||
|
||||
extern const SpaHandleFactory spa_alsa_source_factory;
|
||||
extern const SpaHandleFactory spa_alsa_sink_factory;
|
||||
extern const SpaHandleFactory spa_alsa_monitor_factory;
|
||||
|
||||
SpaResult
|
||||
spa_enum_handle_factory (const SpaHandleFactory **factory,
|
||||
|
|
@ -35,8 +37,14 @@ spa_enum_handle_factory (const SpaHandleFactory **factory,
|
|||
|
||||
switch (index) {
|
||||
case 0:
|
||||
*factory = &spa_alsa_source_factory;
|
||||
break;
|
||||
case 1:
|
||||
*factory = &spa_alsa_sink_factory;
|
||||
break;
|
||||
case 2:
|
||||
*factory = &spa_alsa_monitor_factory;
|
||||
break;
|
||||
default:
|
||||
return SPA_RESULT_ENUM_END;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue