开发者

DSPACK example for converting audio sample rate on the fly?

开发者 https://www.devze.com 2023-04-10 00:41 出处:网络
I am using DSPACK with Delphi 6 Pro. I am looking for a good sample that shows how to create a filter graph that will convert the sample rate of an audio stream to a desired format (sample rate, bit d

I am using DSPACK with Delphi 6 Pro.

I am looking for a good sample that shows how to create a filter graph that will convert the sample rate of an audio stream to a desired format (sample rate, bit depth, and number of channels) in real time.

Does anyone know of a good example project that shows how to structure the filter graph with DSPACK to do this? If not with DSPACK, then if you know of a good example or web page that discusses the general DirectX filter graph concepts involved, I can use that.

I also know C/C++ an开发者_运维百科d can follow a C# example well enough.


You need a resampling filter to do this. Options include:

  • implement a filter which does Audio Resampling
    • using some resample code/library, see Free Resampling Software
    • wrapping Media Foundation Audio Resampler DSP, if you are OK with its runtime requirements
  • use third party filter

Having such filter available, you will need to build a transcoding graph with audio source, resampler and target of your conversion (such as file).

Also as far as I remember, that stock ACM Wrapper Filter is capable of converting PCM audio between standard sample rates.

0

精彩评论

暂无评论...
验证码 换一张
取 消