audioconvert: add log topic for resampler

This commit is contained in:
Pauli Virtanen 2025-09-07 16:44:03 +03:00 committed by Wim Taymans
parent bf783ab08f
commit 28393cb896
3 changed files with 12 additions and 0 deletions

View file

@ -6,6 +6,11 @@
#include <stdio.h>
#include <spa/utils/defs.h>
#include <spa/support/log.h>
#undef SPA_LOG_TOPIC_DEFAULT
#define SPA_LOG_TOPIC_DEFAULT &resample_log_topic
extern struct spa_log_topic resample_log_topic;
struct peaks {
uint32_t cpu_flags;

View file

@ -5,9 +5,14 @@
#include <math.h>
#include <spa/utils/defs.h>
#include <spa/support/log.h>
#include "resample.h"
#undef SPA_LOG_TOPIC_DEFAULT
#define SPA_LOG_TOPIC_DEFAULT &resample_log_topic
extern struct spa_log_topic resample_log_topic;
typedef void (*resample_func_t)(struct resample *r,
const void * SPA_RESTRICT src[], uint32_t ioffs, uint32_t *in_len,
void * SPA_RESTRICT dst[], uint32_t ooffs, uint32_t *out_len);

View file

@ -11,6 +11,8 @@
#include "resample-native-precomp.h"
#endif
SPA_LOG_TOPIC_DEFINE(resample_log_topic, "spa.resample");
struct quality {
uint32_t n_taps;
double cutoff;