Hi,

Really simple test for a problem using System.Media.PlaySound - it gives
nothing under Win32 or Mono so I'm thinking it's me!

using System;
using System.Media;
using System.Windows.Forms;

namespace playsound
{
  public class playsound
  {
    public static void Main()
    {
      SoundPlayer sp = new SoundPlayer();
      sp.SoundLocation = Application.ExecutablePath + @"noise.wav";
      sp.Play();
    }
  }
}

gmcs playsound.cs -r:System.Windows.Forms;
mono playsound.exe (Linux)
playsound (Win32 - from the command line)

No runtime error, but no sound either. Can SoundPlayer be called
directly from within Main or does it need to be called from there via
another function (e.g. public static void Main() { dosound(); } )

TTFN

Paul

-- 
Sie können mich aufreizen und wirklich heiß machen!

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Mono-devel-list mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to