Skip to content

Commit 635c8d3

Browse files
alexsvennordicjm
authored andcommitted
lib: sample_rate_converter: Only include DSP headers if needed
- Don't include filtering_functions.h if sample_rate_converter is not enabled. - OCT-3404 Signed-off-by: Alexander Svensen <[email protected]>
1 parent 16f27db commit 635c8d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/sample_rate_converter.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919
* @{
2020
*/
2121

22+
#ifdef CONFIG_SAMPLE_RATE_CONVERTER
2223
#include <zephyr/sys/ring_buffer.h>
2324
#include <dsp/filtering_functions.h>
25+
#endif /* CONFIG_SAMPLE_RATE_CONVERTER */
2426

2527
/**
2628
* Maximum size for the internal state buffers.

0 commit comments

Comments
 (0)