How to access raw decoded audio data using Windows' built in mp3 decoder?

不想你离开。 提交于 2019-12-07 16:10:06

问题


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?

I assume it would have to be done with DirectShow.

Related but not the same question.


回答1:


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.

Your graph would look something like

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


来源:https://stackoverflow.com/questions/8125234/how-to-access-raw-decoded-audio-data-using-windows-built-in-mp3-decoder

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