tags:

views:

75

answers:

1

I want to play a simple sound. I'm not getting any exceptions, but the sound just isn't playing

<MediaElement Source="sounds/Laser.mp3" Volume="1"  AutoPlay="True" x:Name="Laser" />

Calling the Play() method doesn't work either.

Laser.Play();
A: 

My best guess is that the Build action needs to be set to "Resource". But here is an excellent article that explains how to add sound (Silverlight 2).

McAravey
Haha. That site is where I got the code that isn't working. All my sound files are set to resource. Mabye it's my computer...
Stefan
But... It works for a friend of mine, so I guess it's just my computer
Stefan