[Mono-list] Help finding system.media sounds

Xavi de Blas xaviblas at gmail.com
Thu Apr 5 15:22:13 UTC 2012


Thank you very much!


2012/4/5 Jonathan Pryor <jonpryor at vt.edu>:
> On Apr 4, 2012, at 11:07 PM, Xavi de Blas wrote:
>> Hello, I need to find the audio files that are called when I do:
>>
>> System.Media.SystemSounds.Question.Play()
>> System.Media.SystemSounds.Asterisk.Play()
>> System.Media.SystemSounds.Beep.Play()
>>
>> because I need to play them also with another software in other language.
>
> These are not stored as separate files outside of the source tree. They're stored as resources within System.dll:
>
>        // https://github.com/mono/mono/blob/master/mcs/class/System/System.Media/SystemSound.cs#L40
>        resource = typeof (SystemSound).Assembly.GetManifestResourceStream (tag + ".wav");
>
> They're available from the git repository:
>
>        https://github.com/mono/mono/tree/master/mcs/class/System/resources
>        https://github.com/mono/mono/blob/master/mcs/class/System/resources/Question.wav
>        https://github.com/mono/mono/blob/master/mcs/class/System/resources/Asterisk.wav
>        https://github.com/mono/mono/blob/master/mcs/class/System/resources/Beep.wav
>
>  - Jon
>


More information about the Mono-list mailing list