Hi,

I've managed to sort out my problem with System.Media.PlaySync now (my
speakers were in the wrong socket on my audigy card). However, I've
found a problem.

Under Linux, the file I need to play is coming out in mono and is very
stop-start-juddering, but it plays the whole piece.

Under Win32, the file plays for the first 5 seconds, correct speed.

If I compile the same code under VS.NET 2008, everything works fine.

Can anyone confirm this problem?

8-->
using System;
using System.Media;

namespace playsound
{
  public class playsound
  {
    public static void Main()
    {
      SoundPlayer sp = new SoundPlayer();
      sp.SoundLocation = @"noise.wav";
      Console.WriteLine(sp.SoundLocation);
      sp.Load();
      sp.PlaySync();
      Console.WriteLine("Finished");
    }
  }
}
<--8

The file i'm trying to play is an mp3 converted to wav using lame. It
plays fine under xmms and winamp and has no funny frequencies or other
things which can cause System.Media to complain.

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