[Mono-list] System.Media.SystemSounds

Petit Eric surfzoid at gmail.com
Thu Dec 4 07:46:41 EST 2008


2008/12/3 Dan Shryock <dan.shryock at gmail.com>:
> On Tue, Dec 2, 2008 at 3:58 PM, Petit Eric <surfzoid at gmail.com> wrote:
>> Is System.Media.SystemSounds.Exclamation.Play(); suposed to work under linux ?
>
> Using this code on mono 1.9.1 on opensuse 10.3, each of the sounds
> plays and prints its name without any problems for me. HTH
This not work for me on :
Mandriva 2009.0
[eric at SurfzoidPC ~]$ uname -a
Linux SurfzoidPC 2.6.27.5-desktop-2mnb #1 SMP Thu Nov 20 15:20:32 EST
2008 i686 AMD Sempron(tm) Processor 2600+ GNU/Linux
[eric at SurfzoidPC ~]$ mono -V
Mono JIT compiler version 2.3 (/trunk/mono r mar. nov. 25 23:32:00 CET 2008)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
        TLS:           __thread
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  x86
        Disabled:      none
[eric at SurfzoidPC ~]$

But, also i have 2 sounds cards , perhap's it can be the problem, also
wich output is choice(master one ?) ?
>
> Dan
>
>
>
> var sounds = new[]{
>        new{Name="Asterisk",Sound=System.Media.SystemSounds.Asterisk},
>        new{Name="Beep",Sound=System.Media.SystemSounds.Beep},
>        new{Name="Exclamation",Sound=System.Media.SystemSounds.Exclamation},
>        new{Name="Hand",Sound=System.Media.SystemSounds.Hand},
>        new{Name="Question",Sound=System.Media.SystemSounds.Question}
> };
>
> foreach(var entry in sounds){
>        Console.WriteLine(entry.Name);
>        entry.Sound.Play();
>        System.Threading.Thread.Sleep(3000);
> }
>



-- 

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-list mailing list