Downsampling and applying a lowpass filter to digital audio

后端 未结 10 807
北恋
北恋 2021-02-02 17:41

I\'ve got a 44Khz audio stream from a CD, represented as an array of 16 bit PCM samples. I\'d like to cut it down to an 11KHz stream. How do I do that? From my days of engine

10条回答
  •  独厮守ぢ
    2021-02-02 18:21

    Read on FIR and IIR filters. These are the filters that use a coefficent array.

    If you do a google search on "FIR or IIR filter designer" you will find lots of software and online-applets that does the hard job (getting the coefficients) for you.

    EDIT:

    This page here ( http://www-users.cs.york.ac.uk/~fisher/mkfilter/ ) lets you enter the parameters of your filter and will spit out ready to use C-Code...

提交回复
热议问题