Prof. Falken
Prof. Falken

Reputation: 24877

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. 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.

Upvotes: 3

Views: 563

Answers (1)

Ralf
Ralf

Reputation: 9573

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

Upvotes: 2

Related Questions