playing system sounds?

How to play system sounds (such as errorsound, Notification sound etc.)

Beep

Thanks, but this will play only one standard sound.

I need to play the notification, error etc sounds.

Meanwhile I have included my own sounds and use sound.play

any news about this?

use sound.play

What news are you expecting ?
Which platform ?

hi @Michel Bujardet … thanks.
as the original author said … [quote]I need to play the notification, error etc sounds.[/quote]
windows platform
i know i can play a sound from a file… but i want to play a system sound… not play a sound downloaded from the internet (https://www.freesound.org for example)

but the “system sounds” ARE sounds from a file… you (as a user) can configure those sounds via the system options for both macOS and Windows…

ok… I respond to myself.
i can use the sound located on C:\Windows\Media

Seen from inside Xojo, a solution to play “external” sound files,
which is not so obviously in the first place. :slight_smile:

Keep in mind that beep() is the correct way to play the system notification sound.

The other sound playing methods in this thread are not the system notification sound, and will not trigger the same user interface feedback events associated with the system notification sound.

thanks, good point. i want to play a sound of new message

[quote=335725:@nicolscanessa]hi @MichelBujardet … thanks.
as the original author said …
windows platform
i know i can play a sound from a file… but i want to play a system sound… not play a sound downloaded from the internet (https://www.freesound.org for example)[/quote]

All windows sounds are wav files placed in c:\Windows\Media

To know which one is new message, open the Sound control panel, tab Sounds, select new message and Browse.

thanks @Michel Bujardet !