SoundPlayer.PlayLooping in CF 2.0

  • Thread starter Thread starter Lonifasiko
  • Start date Start date
L

Lonifasiko

Has anybody tested successfully SoundPlayer control from OpenNETCF v1.3
in CF 2.0?

The method PlayLooping used to work very weel with CF 1.0 and VS.NET
2003. Now, in with CF 2.0 and VS.NET 2005 is not working anymore.

I understand this control has been developed and tested only for CF 1.0
and that may not work in CF 2.0.

This is the code that used to work :-(

Assembly asm = Assembly.GetExecutingAssembly();
soundPlayer1.Stream =
asm.GetManifestResourceStream("PlayingFromStream.Sounds.warning.wav");
soundPlayer1.PlayLooping();

Any other alternative method for looping a sound? I've tried with
"Play" method (that still works) and timers but although I disable the
timer after user clicks a button, timerTick event is again fired and
therefore soundplayer plays the stream again and again....

Thanks in advance.
 
What exactly happens does it throw an exception or does it simply not play
the sound?

Peter
 
It doesn't simply play the sound. Note I'm using V1.3 of Smart Device
Framework. Maybe corrected in V1.4?

Thanks.
 
Back
Top