[Mono-dev] Mono 2.0 problem (is it me though?)

Petit Eric surfzoid at gmail.com
Fri Aug 29 14:14:27 EDT 2008


Le 29 août 2008 19:55, Jonathan Chambers <joncham at gmail.com> a écrit :
> Hi,
>      I don't think you want Application.ExecutablePath do you? You'd get
> C:\...\test.exenoise.wav
after the separator path chr forgeted, i think this class doesn't read
all wav, specialy whit "exotic" Hz
>
> - Jonathan
>
> 2008/8/29 Paul <paul at all-the-johnsons.co.uk>
>>
>> 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!
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>



-- 

Cordially.

Small Eric Quotations of the days:
---------------------------------------------------------------------------
If one day one reproaches you that your work is not a work of
professional, say you that:
Amateurs built the arch of Noah, and professionals the Titanic.
---------------------------------------------------------------------------

Few people are done for independence, it is the privilege of the powerful ones.
---------------------------------------------------------------------------

No key was wounded during the drafting of this message.


More information about the Mono-devel-list mailing list