adapter: move to SPA plugin

Move the adapter code to a SPA plugin and make the adapter module
use the plugin instead.
This commit is contained in:
Wim Taymans 2019-07-10 18:04:59 +02:00
parent 7f885b6db4
commit 9364f64b10
5 changed files with 1075 additions and 1285 deletions

View file

@ -32,6 +32,7 @@ extern const struct spa_handle_factory spa_channelmix_factory;
extern const struct spa_handle_factory spa_resample_factory;
extern const struct spa_handle_factory spa_splitter_factory;
extern const struct spa_handle_factory spa_merger_factory;
extern const struct spa_handle_factory spa_audioadapter_factory;
SPA_EXPORT
int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t *index)
@ -58,6 +59,9 @@ int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t
case 5:
*factory = &spa_merger_factory;
break;
case 6:
*factory = &spa_audioadapter_factory;
break;
default:
return 0;
}