XCORE SDK
XCORE Software Development Kit
Functions
NS API functions

Functions

void ns_init (ns_state_t *ns)
 Initialise the NS. More...
 
void ns_process_frame (ns_state_t *ns, int32_t output[NS_FRAME_ADVANCE], const int32_t input[NS_FRAME_ADVANCE])
 Perform NS processing on a frame of input data. More...
 

Detailed Description

Function Documentation

◆ ns_init()

void ns_init ( ns_state_t ns)

Initialise the NS.

This function initialises the NS state with the provided configuration. It must be called at startup to initialise the NS before processing any frames, and can be called at any time after that to reset the NS instance, returning the internal NS state to its defaults.

Parameters
[out]nsNS state structure
Example
ns_init(&ns);
void ns_init(ns_state_t *ns)
Initialise the NS.
NS state structure.
Definition: ns_state.h:62

◆ ns_process_frame()

void ns_process_frame ( ns_state_t ns,
int32_t  output[NS_FRAME_ADVANCE],
const int32_t  input[NS_FRAME_ADVANCE] 
)

Perform NS processing on a frame of input data.

This function updates the NS's internal state based on the input 1.31 frame, and returns an output 1.31 frame containing the result of the NS algorithm applied to the input.

The input and output pointers can be equal to perform the processing in-place.

Parameters
[in,out]nsNS state structure
[out]outputArray to return the resulting frame of data
[in]inputArray of frame data on which to perform the NS
Example
int32_t input[NS_FRAME_ADVANCE];
int32_t output[NS_FRAME_ADVANCE];
ns_init(&ns);
ns_process_frame(&ns, output, input);
#define NS_FRAME_ADVANCE
Length of the frame of data on which the NS will operate.
Definition: ns_state.h:25
void ns_process_frame(ns_state_t *ns, int32_t output[NS_FRAME_ADVANCE], const int32_t input[NS_FRAME_ADVANCE])
Perform NS processing on a frame of input data.