WaveAudio.Player plays wave file out of order

Last post 05-04-2009 21:25 by cloudraven. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-04-2009 20:27

    WaveAudio.Player plays wave file out of order

    Hi,

    I am having some weird problems with WaveAudio.Player, at first I thought it was skipping the audio, but after listening closely, it looks like it is playing chunks out of order, I don't understand why is that happening. If I use the PInvoke WaveOut library in MSDN it works perfectly,as well as in the media player  for that wave file. I could just use that, but the Player ability to read from a Stream rather than from a given filename gives me more flexibility for generating stuff on the fly

    Why could that be?

     I just tried something trivial like this, and it happens

                FileStream fs = new FileStream("file.wav", FileMode.Open);
                Player p = new Player();
                p.Play(fs);

     Any help is appreciated

    Thanks

    Filed under: , ,
  • 05-04-2009 21:25 In reply to

    Re: WaveAudio.Player plays wave file out of order

     Actually, if I use SoundPlayer it works fine... Just out of curiosity, what is the difference between Player and SoundPlayer?

Page 1 of 1 (2 items)