soundplayer

  • Thread starter Thread starter WD
  • Start date Start date
W

WD

Hi,

I'm using the Soundplayer class in my c# project and can't seem to get all
my files playing. If I play the tada.wav sound in windows it works fine. If I
play my 0.7 second audio tone, nothing comes out. I had a look and the tada
sound goes for nearly 1.95 seconds. Does the length of the file I'm trying to
play affect the fact that it won't play?

Thanks,
 
WD said:
Hi,

I'm using the Soundplayer class in my c# project and can't seem to get all
my files playing. If I play the tada.wav sound in windows it works fine. If I
play my 0.7 second audio tone, nothing comes out. I had a look and the tada
sound goes for nearly 1.95 seconds. Does the length of the file I'm trying to
play affect the fact that it won't play?

Thanks,

what file type is the audio tone?
 
the file type is of wav

I think I worked my way around it. What was interesting was that the wav
file was playable in windows media player even though it wasn't in
soundplayer. If I opened the wav file in a wave editor and resaved it, then
soundplayer would play it fine. So I just used WMF instead of soundplayer and
it works fine.
 

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

Back
Top