[Mono-list] Help finding system.media sounds

Jonathan Pryor jonpryor at vt.edu
Thu Apr 5 14:40:58 UTC 2012


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