[英]How to access raw decoded audio data using Windows' built in mp3 decoder?
Since Windows Media Player 6.1, Windows has its' own mp3 decoder. 从Windows Media Player 6.1开始,Windows就拥有了自己的mp3解码器。 Can I use that decoder to get access to the decoded audio (raw) data? 我可以使用该解码器访问解码的音频(原始)数据吗?
I assume it would have to be done with DirectShow. 我认为必须使用DirectShow完成。
You can add a sample grabber into the graph after the mp3 decoder. 您可以在mp3解码器之后将示例抓取器添加到图形中。 The sample grabber allows you to configure a callback that gets called as each sample passes through the media pipeline. 样本采集器允许您配置在每个样本通过媒体管道时调用的回调。
Your graph would look something like 你的图表看起来像
mp3 file -> mp3 decoder -> sample grabber -> renderer
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.