portion of WAV file

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
 
P

Peter Morris

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top