portion of WAV file

  • Thread starter Thread starter Bill
  • Start date Start date
B

Bill

Hi,

I'm trying to read (to end up plotting it and playing it) only a
_portion_ of a wav file. Looks like the System.Media.SoundPlayer class
is conceived to load and play entire wav files. Is there a way, maybe
using SoundPlayer in conjunction with streams, to do what I want?

Are there other better classes?

Thank you,
Bill
 
Barring that, you'll probably find simply reading the file in as straight
data and parsing it yourself to be the most effective way to display the
data.

If the DirectShow approach is easy (which I have no experience of) this
would be the best approach. To read the raw data and interpret the sample
points in order to plot them would be complicated because audio data within
WAV files isn't necessarily always PCM, it could be GSM, TrueSpeech, MP3, or
any other supported audio codec on the system.
 
Back
Top