alsa: aad alsa source and monitor

This commit is contained in:
Wim Taymans 2016-09-19 09:16:58 +02:00
parent 2bf322ee71
commit bd7009756c
12 changed files with 707 additions and 567 deletions

View file

@ -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;
}