WASAPI Resampling / Windows Media Foundation

…衆ロ難τιáo~ 提交于 2019-12-22 10:37:57

问题


I'm writing a Pro Audio application using WASAPI. This application runs a stream in exclusive mode, and resamples the audio data to and from a constant format in both directions (one resample between the capture device and the app, and another between the app and the output device). There's a page on MSDN about an Audio Resampler DSP here, but I'm not sure if this is the API I want to use.

The reason I'm not sure about it is the way the API is designed. Using IMFTransform, I need a bunch of extra buffers that really only complicate the process, and the object is designed almost like a Direct3D object where I'm communicating with some driver (it has a command queue and the buffers have locks on them).

What I'm looking for is an API that resamples the data within my own app as fast as possible. Is this the API Pro Audio applications are supposed to use for this purpose? If not, what is the correct API?

来源:https://stackoverflow.com/questions/23329956/wasapi-resampling-windows-media-foundation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!