【问题标题】:How to access raw decoded audio data using Windows' built in mp3 decoder?如何使用 Windows 的内置 mp3 解码器访问原始解码音频数据?
【发布时间】:2011-11-14 17:05:12
【问题描述】:

从 Windows Media Player 6.1 开始,Windows 就有了自己的 mp3 解码器。我可以使用该解码器访问解码的音频(原始)数据吗?

我认为必须使用 DirectShow 来完成。

Related but not the same question.

【问题讨论】:

    标签: c++ c windows winapi directshow


    【解决方案1】:

    您可以在 mp3 解码器之后将sample grabber 添加到图表中。样本抓取器允许您配置在每个样本通过媒体管道时调用的回调。

    你的图表看起来像

    mp3 file -> mp3 decoder -> sample grabber -> renderer
    

    【讨论】:

    • 我可以完全放弃渲染器,还是我总是需要渲染器?
    • 您可以添加一个空渲染器 (msdn.microsoft.com/en-us/library/windows/desktop/…)。但是我看到它已被弃用(我第一次看到)。我猜测弃用与 MS 推动 WMF 有关,但我认为这需要一段时间才能完全从 DS 接管。
    猜你喜欢
    • 2011-12-28
    • 1970-01-01
    • 2014-10-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-02
    • 2020-01-01
    • 1970-01-01
    • 2011-05-17
    相关资源
    最近更新 更多