How to play system sound in Delphi FireMonkey XE4?
问题 I want to play system sound in both Windows and MAC OS X. To play sound in Windows used something like this: PlaySound('C:\Windows\Media\Windows Default.wav', 0, SND_FILENAME + SND_ASYNC); I am sure I have to use TMediaPlayer. 回答1: You are correct, you can use the TMediaPlayer component, documentation clearly states : TMediaPlayer playbacks audio files and the audio component of a video file. To specify the media file to be played by the current TMediaPlayer, set the FileName property. The