SoundPlayer.PlayLooping in CF 2.0

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.
 
P

Peter Foot [MVP]

What exactly happens does it throw an exception or does it simply not play
the sound?

Peter
 
L

Lonifasiko

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

Thanks.
 

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