node: add active flag for rate match

Add flags to the rate match io area
Add flag to activate/deactivate rate match
Set active flag in rate match when slaved
Update rate before starting resample
This commit is contained in:
Wim Taymans 2019-10-21 10:13:56 +02:00
parent f5b9862a89
commit 116676e149
3 changed files with 14 additions and 3 deletions

View file

@ -265,6 +265,8 @@ struct spa_io_rate_match {
uint32_t delay; /**< extra delay in samples for resampler */
uint32_t size; /**< requested input size for resampler */
double rate; /**< rate for resampler */
#define SPA_IO_RATE_MATCH_FLAG_ACTIVE (1 << 0)
uint32_t flags; /**< extra flags */
};
#ifdef __cplusplus