mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
more work on audioconvert
Implement audioconvert as a complex element of fmtconver, channelmix and resample. Make copying resample just to test. Plug the converter into pw_stream.
This commit is contained in:
parent
de36330917
commit
b3b47d3fe9
9 changed files with 1454 additions and 542 deletions
|
|
@ -24,6 +24,7 @@
|
|||
extern const struct spa_handle_factory spa_audioconvert_factory;
|
||||
extern const struct spa_handle_factory spa_fmtconvert_factory;
|
||||
extern const struct spa_handle_factory spa_channelmix_factory;
|
||||
extern const struct spa_handle_factory spa_resample_factory;
|
||||
|
||||
int
|
||||
spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t *index)
|
||||
|
|
@ -41,6 +42,9 @@ spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t *ind
|
|||
case 2:
|
||||
*factory = &spa_channelmix_factory;
|
||||
break;
|
||||
case 3:
|
||||
*factory = &spa_resample_factory;
|
||||
break;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue