如何使用Windows内置的mp3解码器访问原始的解码音频数据? [英] How to access raw decoded audio data using Windows' built in mp3 decoder?

查看:153
本文介绍了如何使用Windows内置的mp3解码器访问原始的解码音频数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Since Windows Media Player 6.1, Windows has its' own mp3 decoder. Can I use that decoder to get access to the decoded audio (raw) data?

我认为必须使用DirectShow。

I assume it would have to be done with DirectShow.

相关但并非相同的问题。

推荐答案

您可以添加样本采集卡插入mp3解码器之后的图形中。样本采集器允许您配置一个回调,该回调在每个样本通过媒体管道时被调用。

You can add a sample grabber into the graph after the mp3 decoder. The sample grabber allows you to configure a callback that gets called as each sample passes through the media pipeline.

您的图形看起来像

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

这篇关于如何使用Windows内置的mp3解码器访问原始的解码音频数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆