mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	audioconvert: add log topic for resampler
This commit is contained in:
		
							parent
							
								
									e8d739fdd7
								
							
						
					
					
						commit
						16b3c8a6f6
					
				
					 3 changed files with 12 additions and 0 deletions
				
			
		| 
						 | 
					@ -6,6 +6,11 @@
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <spa/utils/defs.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 {
 | 
					struct peaks {
 | 
				
			||||||
	uint32_t cpu_flags;
 | 
						uint32_t cpu_flags;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -5,9 +5,14 @@
 | 
				
			||||||
#include <math.h>
 | 
					#include <math.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <spa/utils/defs.h>
 | 
					#include <spa/utils/defs.h>
 | 
				
			||||||
 | 
					#include <spa/support/log.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "resample.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,
 | 
					typedef void (*resample_func_t)(struct resample *r,
 | 
				
			||||||
        const void * SPA_RESTRICT src[], uint32_t ioffs, uint32_t *in_len,
 | 
					        const void * SPA_RESTRICT src[], uint32_t ioffs, uint32_t *in_len,
 | 
				
			||||||
        void * SPA_RESTRICT dst[], uint32_t ooffs, uint32_t *out_len);
 | 
					        void * SPA_RESTRICT dst[], uint32_t ooffs, uint32_t *out_len);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,6 +11,8 @@
 | 
				
			||||||
#include "resample-native-precomp.h"
 | 
					#include "resample-native-precomp.h"
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					SPA_LOG_TOPIC_DEFINE(resample_log_topic, "spa.resample");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct quality {
 | 
					struct quality {
 | 
				
			||||||
	uint32_t n_taps;
 | 
						uint32_t n_taps;
 | 
				
			||||||
	double cutoff;
 | 
						double cutoff;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue