Enum SoundSettings
See PlaySound
Namespace: Dapplo.Windows.Multimedia
Assembly: Dapplo.Windows.Multimedia.dll
Syntax
public enum SoundSettings : uint
Fields
Name | Description |
---|---|
Alias | The pszSound parameter is a system-event alias in the registry or the WIN.INI file. Do not use with either SND_FILENAME or SND_RESOURCE. |
AliasId | The pszSound parameter is a predefined id |
Async | The sound is played asynchronously and PlaySound returns immediately after beginning the sound. To terminate an asynchronously played waveform sound, call PlaySound with pszSound set to NULL. |
Filename | The pszSound parameter is a file name. |
Loop | The sound plays repeatedly until PlaySound is called again with the pszSound parameter set to NULL. You must also specify the SND_ASYNC flag to indicate an asynchronous sound event. |
Memory | The pszSound parameter points to a sound loaded in memory. see Playing WAVE Resources |
NoDefault | No default sound event is used. If the sound cannot be found, PlaySound returns silently without playing the default sound. |
None | Default: Synchronous playback of a sound event. PlaySound returns after the sound event completes. |
NoStop | The specified sound event will yield to another sound event that is already playing. If a sound cannot be played because the resource needed to generate that sound is busy playing another sound, the function immediately returns FALSE without playing the requested sound. If this flag is not specified, PlaySound attempts to stop the currently playing sound so that the device can be used to play the new sound. |
NoWait | Not supported. |
Purge | Not supported. |
Resource | The pszSound parameter is a resource identifier; hmod must identify the instance that contains the resource. see Playing WAVE Resources |
Sentry | If this flag is set, the function triggers a SoundSentry event when the sound is played. SoundSentry is an accessibility feature that causes the computer to display a visual cue when a sound is played. If the user did not enable SoundSentry, the visual cue is not displayed. |
System | If this flag is set, the sound is assigned to the audio session for system notification sounds. The system volume-control program (SndVol) displays a volume slider that controls system notification sounds. Setting this flag puts the sound under the control of that volume slider If this flag is not set, the sound is assigned to the default audio session for the application's process. For more information, see the documentation for the Core Audio APIs. |