diff --git a/spa/include/spa/interfaces/audio/aec.h b/spa/include/spa/interfaces/audio/aec.h index 17e4e4e46..601f7b61e 100644 --- a/spa/include/spa/interfaces/audio/aec.h +++ b/spa/include/spa/interfaces/audio/aec.h @@ -68,9 +68,9 @@ struct spa_audio_aec_methods { const struct spa_audio_aec_events *events, void *data); - int (*init) (void *data, const struct spa_dict *args, const struct spa_audio_info_raw *info); - int (*run) (void *data, const float *rec[], const float *play[], float *out[], uint32_t n_samples); - int (*set_props) (void *data, const struct spa_dict *args); + int (*init) (void *object, const struct spa_dict *args, const struct spa_audio_info_raw *info); + int (*run) (void *object, const float *rec[], const float *play[], float *out[], uint32_t n_samples); + int (*set_props) (void *object, const struct spa_dict *args); }; #define spa_audio_aec_method(o,method,version,...) \ diff --git a/spa/plugins/aec/aec-webrtc.cpp b/spa/plugins/aec/aec-webrtc.cpp index 4f94f9f48..5c129c534 100644 --- a/spa/plugins/aec/aec-webrtc.cpp +++ b/spa/plugins/aec/aec-webrtc.cpp @@ -58,9 +58,9 @@ static bool webrtc_get_spa_bool(const struct spa_dict *args, const char *key, bo return default_value; } -static int webrtc_init(void *data, const struct spa_dict *args, const struct spa_audio_info_raw *info) +static int webrtc_init(void *object, const struct spa_dict *args, const struct spa_audio_info_raw *info) { - auto impl = static_cast(data); + auto impl = static_cast(object); bool extended_filter = webrtc_get_spa_bool(args, "webrtc.extended_filter", true); bool delay_agnostic = webrtc_get_spa_bool(args, "webrtc.delay_agnostic", true); @@ -120,9 +120,9 @@ static int webrtc_init(void *data, const struct spa_dict *args, const struct spa return 0; } -static int webrtc_run(void *data, const float *rec[], const float *play[], float *out[], uint32_t n_samples) +static int webrtc_run(void *object, const float *rec[], const float *play[], float *out[], uint32_t n_samples) { - auto impl = static_cast(data); + auto impl = static_cast(object); webrtc::StreamConfig config = webrtc::StreamConfig(impl->info.rate, impl->info.channels, false); unsigned int num_blocks = n_samples * 1000 / impl->info.rate / 10;