3

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.

Community
  • 1
  • 1
Prof. Falken
  • 24,226
  • 19
  • 100
  • 173

1 Answers1

2

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
Ralf
  • 9,405
  • 2
  • 28
  • 46
  • Can I forego the renderer totally, or do I always need a renderer? – Prof. Falken Nov 14 '11 at 17:49
  • 1
    You can add in a null renderer (http://msdn.microsoft.com/en-us/library/windows/desktop/dd390934(v=vs.85).aspx). However I see that it has been deprecated (first time I'm seeing that). I'm guessing the deprecation has something to do with MS pushing WMF though I think it'll be a while until that takes over from DS completely. – Ralf Nov 14 '11 at 18:16