I am trying to build a simple application that will allow me to test sets of various filter coefficients.
To do this, I am modifying the SPDIFToAnalogTalkthrough example code to run on a 21489 EZKit eval board.
This example has a function named processBlock(unsigned int *block_ptr). The original example code just copies the block_ptr back into block_ptr.
What I would like to do is to insert a call to the fir() function in this method.
The problem that I'm running into is that the input vector for the fir() function is of type float.
I found other example code that uses the compiler to cast unsigned int -> float.
However, the code to convert from float -> int causes the output buffer array to be 2x the size of the input.
The example code for converting between float and int is below: