win32.dart 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // ignore_for_file: non_constant_identifier_names, constant_identifier_names
  2. import 'ffi.dart';
  3. int PlaySound(Pointer<Utf16> pszSound, int hmod, int fdwSound) => 0;
  4. const NULL = 0;
  5. /// play synchronously (default)
  6. const SND_SYNC = 0x0000;
  7. /// play asynchronously
  8. const SND_ASYNC = 0x0001;
  9. /// silence (!default) if sound not found
  10. const SND_NODEFAULT = 0x0002;
  11. /// pszSound points to a memory file
  12. const SND_MEMORY = 0x0004;
  13. /// loop the sound until next sndPlaySound
  14. const SND_LOOP = 0x0008;
  15. /// don't stop any currently playing sound
  16. const SND_NOSTOP = 0x0010;
  17. /// don't wait if the driver is busy
  18. const SND_NOWAIT = 0x00002000;
  19. /// name is a registry alias
  20. const SND_ALIAS = 0x00010000;
  21. /// alias is a predefined ID
  22. const SND_ALIAS_ID = 0x00110000;
  23. /// name is file name
  24. const SND_FILENAME = 0x00020000;
  25. /// name is resource name or atom
  26. const SND_RESOURCE = 0x00040004;
  27. /// purge non-static events for task
  28. const SND_PURGE = 0x0040;
  29. /// look for application specific association
  30. const SND_APPLICATION = 0x0080;
  31. /// Generate a SoundSentry event with this sound
  32. const SND_SENTRY = 0x00080000;
  33. /// Treat this as a "ring" from a communications app - don't duck me
  34. const SND_RING = 0x00100000;
  35. /// Treat this as a system sound
  36. const SND_SYSTEM = 0x00200000;