0

How do you access the raw data of a sound file after using DirectShow to load it?

What interface allows you to access the raw data of a waveform, for example?

bobobobo
  • 64,917
  • 62
  • 258
  • 363

2 Answers2

0

IMediaSample::GetPointer

bobobobo
  • 64,917
  • 62
  • 258
  • 363
  • This is how to get at the data in the actual sample; if you want it available outside of the directshow framework, Dee Mon's answer is what you're looking for. – kidjan Dec 17 '10 at 22:33
0

Insert the Sample Grabber filter between file parser and audio card (or other renderer) and query ISampleGrabber interface. It will give you the data as it's passing through.

Dee Mon
  • 1,016
  • 6
  • 7