System.Media 命名空間

包含用來播放音效檔和存取系統所提供音效的類別。 Contains classes for playing sound files and accessing sounds provided by the system.

類別

SoundPlayer

控制 .wav 檔音效的播放。Controls playback of a sound from a .wav file.

SystemSound

表示系統音效類型。Represents a system sound type.

SystemSounds

擷取與一組 Windows 作業系統音效事件類型關聯的音效。Retrieves sounds associated with a set of Windows operating system sound-event types. 此類別無法獲得繼承。This class cannot be inherited.

備註

下列類別包含在此命名空間中:The following classes are included in this namespace:

  • SoundPlayer 來載入及播放各種檔案格式音效的類別。A SoundPlayer class for loading and playing sounds in various file formats.

  • SystemSound代表和播放系統音效的類別。A SystemSound class for representing and playing a system sound.

  • 一種 SystemSounds 類別,可抓取與一組 Windows 作業系統音效事件種類相關聯的聲音。A SystemSounds class that retrieves sounds associated with a set of Windows operating system sound-event types.