Cleanup of sound code, also added the possibility to configure your own sound.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1911 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-06-08 11:43:05 +00:00
parent 5d742ce21d
commit b3a3c1da4e
3 changed files with 50 additions and 31 deletions

View file

@ -940,4 +940,21 @@ namespace GreenshotPlugin.UnmanagedHelpers {
QueryInformation = 0x00000400,
Synchronize = 0x00100000
}
/// <summary>
/// See: http://msdn.microsoft.com/en-us/library/aa909766.aspx
/// </summary>
[Flags]
public enum SoundFlags : int {
SND_SYNC = 0x0000, // play synchronously (default)
SND_ASYNC = 0x0001, // play asynchronously
SND_NODEFAULT = 0x0002, // silence (!default) if sound not found
SND_MEMORY = 0x0004, // pszSound points to a memory file
SND_LOOP = 0x0008, // loop the sound until next sndPlaySound
SND_NOSTOP = 0x0010, // don't stop any currently playing sound
SND_NOWAIT = 0x00002000, // don't wait if the driver is busy
SND_ALIAS = 0x00010000, // name is a registry alias
SND_ALIAS_ID = 0x00110000, // alias is a predefined id
SND_FILENAME = 0x00020000, // name is file name
}
}