Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion lib_mic_array/api/mic_array_frame.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
// Copyright (c) 2015-2017, XMOS Ltd, All rights reserved
// Copyright (c) 2015-2019, XMOS Ltd, All rights reserved
#ifndef MIC_ARRAY_FRAME_H_
#define MIC_ARRAY_FRAME_H_

#include <stdint.h>
#include "mic_array_conf.h"
#include "dsp_fft.h"

#ifndef MIC_DUAL_ENABLED
#define MIC_DUAL_ENABLED (0)
#endif

// MIC_DUAL_FRAME_SIZE has no meaning if MIC_DUAL_ENABLED is false.
// Only define MIC_DUAL_FRAME_SIZE to a default value if MIC_DUAL_ENABLED is true.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be:

Only define MIC_DUAL_FRAME_SIZE to a default value if MIC_DUAL_ENABLED is false.

#ifndef MIC_DUAL_FRAME_SIZE
#if defined(MIC_DUAL_ENABLED) && (MIC_DUAL_ENABLED != 0)
#define MIC_DUAL_FRAME_SIZE (1)
#endif
#endif

#ifndef MIC_ARRAY_FRAME_SIZE
#define MIC_ARRAY_FRAME_SIZE (1)
#endif

#ifndef MIC_ARRAY_WORD_LENGTH_SHORT
#define MIC_ARRAY_WORD_LENGTH_SHORT 0
#endif
Expand Down
Loading