问题描述
我使用DSPACK用Delphi 6专业版。结果
我找了一个很好的示例,演示如何创建一个过滤器图,将音频流的采样率转换为实时所需的格式(采样率,比特深度和通道数)。结果
有谁知道一个很好的例子,项目展示如何构建过滤器图表与DSPACK做到这一点的?如果不是DSPACK,然后如果你知道,讨论涉及的一般的DirectX过滤图概念一个很好的例子或网页,我可以使用它。结果
我也知道C / C ++,并可以按照C#示例不够好。
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.
推荐答案
您需要一个重采样滤波器来做到这一点。选项包括:
You need a resampling filter to do this. Options include:
- 实现一个过滤器,它确实
- 使用一些重采样code /库,请参阅,如果你是与它的运行时间需求确定
- 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
有提供此类过滤器,你将需要建立与音频源,重采样和目标的转换(如文件)转码图。
Having such filter available, you will need to build a transcoding graph with audio source, resampler and target of your conversion (such as file).
此外,据我记得,股票的能够转换标准采样率之间的PCM音频的。
Also as far as I remember, that stock ACM Wrapper Filter is capable of converting PCM audio between standard sample rates.
这篇关于例如DSPACK在飞行转换的音频采样率是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!