Question

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++ and can follow a C# example well enough.

Was it helpful?

Solution

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

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top