I am trying to replace a routine filter function with fir() in DSPLib.My doubts are as follows:
(1) Does fir() works for a sample by sample basis?
(2) I tried to work fir() for sample by sample basis. I have put 2 cases: 1 case:without any processing for audio signal
case 2: after filtering the audio signal.
I can hear the signal for case 1,but when case2,the music stops and again resumes...y is it so?
DATA r; //DATA is a dataype
NX = 1; NH = 51; for (i=0; i<NH+2; i++) db[i] = 0; // clear delay buffer (a must)
// compute // fir(x, h, r, dbptr, NX, NH);
left_output = r;fir((DATA*)&mono_input,(DATA*)Hamming_High_Pass_Filter_500Hz,&r,dbptr,NX,NH);right_output = r;
Plz reply asap.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.