[Mono-dev] System.Media.PlaySync seems faulty
Paul
paul at all-the-johnsons.co.uk
Sun Aug 31 17:55:22 EDT 2008
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!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080831/d4ebc379/attachment.bin
More information about the Mono-devel-list
mailing list