Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mmsystem.py 30KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954
  1. # Generated by h2py from d:/msdev/include/mmsystem.h
  2. MAXPNAMELEN = 32
  3. MAXERRORLENGTH = 256
  4. MAX_JOYSTICKOEMVXDNAME = 260
  5. MM_MICROSOFT = 1
  6. MM_MIDI_MAPPER = 1
  7. MM_WAVE_MAPPER = 2
  8. MM_SNDBLST_MIDIOUT = 3
  9. MM_SNDBLST_MIDIIN = 4
  10. MM_SNDBLST_SYNTH = 5
  11. MM_SNDBLST_WAVEOUT = 6
  12. MM_SNDBLST_WAVEIN = 7
  13. MM_ADLIB = 9
  14. MM_MPU401_MIDIOUT = 10
  15. MM_MPU401_MIDIIN = 11
  16. MM_PC_JOYSTICK = 12
  17. TIME_MS = 0x0001
  18. TIME_SAMPLES = 0x0002
  19. TIME_BYTES = 0x0004
  20. TIME_SMPTE = 0x0008
  21. TIME_MIDI = 0x0010
  22. TIME_TICKS = 0x0020
  23. MM_JOY1MOVE = 0x3A0
  24. MM_JOY2MOVE = 0x3A1
  25. MM_JOY1ZMOVE = 0x3A2
  26. MM_JOY2ZMOVE = 0x3A3
  27. MM_JOY1BUTTONDOWN = 0x3B5
  28. MM_JOY2BUTTONDOWN = 0x3B6
  29. MM_JOY1BUTTONUP = 0x3B7
  30. MM_JOY2BUTTONUP = 0x3B8
  31. MM_MCINOTIFY = 0x3B9
  32. MM_WOM_OPEN = 0x3BB
  33. MM_WOM_CLOSE = 0x3BC
  34. MM_WOM_DONE = 0x3BD
  35. MM_WIM_OPEN = 0x3BE
  36. MM_WIM_CLOSE = 0x3BF
  37. MM_WIM_DATA = 0x3C0
  38. MM_MIM_OPEN = 0x3C1
  39. MM_MIM_CLOSE = 0x3C2
  40. MM_MIM_DATA = 0x3C3
  41. MM_MIM_LONGDATA = 0x3C4
  42. MM_MIM_ERROR = 0x3C5
  43. MM_MIM_LONGERROR = 0x3C6
  44. MM_MOM_OPEN = 0x3C7
  45. MM_MOM_CLOSE = 0x3C8
  46. MM_MOM_DONE = 0x3C9
  47. MM_STREAM_OPEN = 0x3D4
  48. MM_STREAM_CLOSE = 0x3D5
  49. MM_STREAM_DONE = 0x3D6
  50. MM_STREAM_ERROR = 0x3D7
  51. MM_MOM_POSITIONCB = 0x3CA
  52. MM_MIM_MOREDATA = 0x3CC
  53. MM_MIXM_LINE_CHANGE = 0x3D0
  54. MM_MIXM_CONTROL_CHANGE = 0x3D1
  55. MMSYSERR_BASE = 0
  56. WAVERR_BASE = 32
  57. MIDIERR_BASE = 64
  58. TIMERR_BASE = 96
  59. JOYERR_BASE = 160
  60. MCIERR_BASE = 256
  61. MIXERR_BASE = 1024
  62. MCI_STRING_OFFSET = 512
  63. MCI_VD_OFFSET = 1024
  64. MCI_CD_OFFSET = 1088
  65. MCI_WAVE_OFFSET = 1152
  66. MCI_SEQ_OFFSET = 1216
  67. MMSYSERR_NOERROR = 0
  68. MMSYSERR_ERROR = MMSYSERR_BASE + 1
  69. MMSYSERR_BADDEVICEID = MMSYSERR_BASE + 2
  70. MMSYSERR_NOTENABLED = MMSYSERR_BASE + 3
  71. MMSYSERR_ALLOCATED = MMSYSERR_BASE + 4
  72. MMSYSERR_INVALHANDLE = MMSYSERR_BASE + 5
  73. MMSYSERR_NODRIVER = MMSYSERR_BASE + 6
  74. MMSYSERR_NOMEM = MMSYSERR_BASE + 7
  75. MMSYSERR_NOTSUPPORTED = MMSYSERR_BASE + 8
  76. MMSYSERR_BADERRNUM = MMSYSERR_BASE + 9
  77. MMSYSERR_INVALFLAG = MMSYSERR_BASE + 10
  78. MMSYSERR_INVALPARAM = MMSYSERR_BASE + 11
  79. MMSYSERR_HANDLEBUSY = MMSYSERR_BASE + 12
  80. MMSYSERR_INVALIDALIAS = MMSYSERR_BASE + 13
  81. MMSYSERR_BADDB = MMSYSERR_BASE + 14
  82. MMSYSERR_KEYNOTFOUND = MMSYSERR_BASE + 15
  83. MMSYSERR_READERROR = MMSYSERR_BASE + 16
  84. MMSYSERR_WRITEERROR = MMSYSERR_BASE + 17
  85. MMSYSERR_DELETEERROR = MMSYSERR_BASE + 18
  86. MMSYSERR_VALNOTFOUND = MMSYSERR_BASE + 19
  87. MMSYSERR_NODRIVERCB = MMSYSERR_BASE + 20
  88. MMSYSERR_LASTERROR = MMSYSERR_BASE + 20
  89. DRV_LOAD = 0x0001
  90. DRV_ENABLE = 0x0002
  91. DRV_OPEN = 0x0003
  92. DRV_CLOSE = 0x0004
  93. DRV_DISABLE = 0x0005
  94. DRV_FREE = 0x0006
  95. DRV_CONFIGURE = 0x0007
  96. DRV_QUERYCONFIGURE = 0x0008
  97. DRV_INSTALL = 0x0009
  98. DRV_REMOVE = 0x000A
  99. DRV_EXITSESSION = 0x000B
  100. DRV_POWER = 0x000F
  101. DRV_RESERVED = 0x0800
  102. DRV_USER = 0x4000
  103. DRVCNF_CANCEL = 0x0000
  104. DRVCNF_OK = 0x0001
  105. DRVCNF_RESTART = 0x0002
  106. DRV_CANCEL = DRVCNF_CANCEL
  107. DRV_OK = DRVCNF_OK
  108. DRV_RESTART = DRVCNF_RESTART
  109. DRV_MCI_FIRST = DRV_RESERVED
  110. DRV_MCI_LAST = DRV_RESERVED + 0xFFF
  111. CALLBACK_TYPEMASK = 0x00070000
  112. CALLBACK_NULL = 0x00000000
  113. CALLBACK_WINDOW = 0x00010000
  114. CALLBACK_TASK = 0x00020000
  115. CALLBACK_FUNCTION = 0x00030000
  116. CALLBACK_THREAD = CALLBACK_TASK
  117. CALLBACK_EVENT = 0x00050000
  118. SND_SYNC = 0x0000
  119. SND_ASYNC = 0x0001
  120. SND_NODEFAULT = 0x0002
  121. SND_MEMORY = 0x0004
  122. SND_LOOP = 0x0008
  123. SND_NOSTOP = 0x0010
  124. SND_NOWAIT = 0x00002000
  125. SND_ALIAS = 0x00010000
  126. SND_ALIAS_ID = 0x00110000
  127. SND_FILENAME = 0x00020000
  128. SND_RESOURCE = 0x00040004
  129. SND_PURGE = 0x0040
  130. SND_APPLICATION = 0x0080
  131. SND_ALIAS_START = 0
  132. WAVERR_BADFORMAT = WAVERR_BASE + 0
  133. WAVERR_STILLPLAYING = WAVERR_BASE + 1
  134. WAVERR_UNPREPARED = WAVERR_BASE + 2
  135. WAVERR_SYNC = WAVERR_BASE + 3
  136. WAVERR_LASTERROR = WAVERR_BASE + 3
  137. WOM_OPEN = MM_WOM_OPEN
  138. WOM_CLOSE = MM_WOM_CLOSE
  139. WOM_DONE = MM_WOM_DONE
  140. WIM_OPEN = MM_WIM_OPEN
  141. WIM_CLOSE = MM_WIM_CLOSE
  142. WIM_DATA = MM_WIM_DATA
  143. WAVE_MAPPER = -1 # 0xFFFFFFFF
  144. WAVE_FORMAT_QUERY = 0x0001
  145. WAVE_ALLOWSYNC = 0x0002
  146. WAVE_MAPPED = 0x0004
  147. WAVE_FORMAT_DIRECT = 0x0008
  148. WAVE_FORMAT_DIRECT_QUERY = WAVE_FORMAT_QUERY | WAVE_FORMAT_DIRECT
  149. WHDR_DONE = 0x00000001
  150. WHDR_PREPARED = 0x00000002
  151. WHDR_BEGINLOOP = 0x00000004
  152. WHDR_ENDLOOP = 0x00000008
  153. WHDR_INQUEUE = 0x00000010
  154. WAVECAPS_PITCH = 0x0001
  155. WAVECAPS_PLAYBACKRATE = 0x0002
  156. WAVECAPS_VOLUME = 0x0004
  157. WAVECAPS_LRVOLUME = 0x0008
  158. WAVECAPS_SYNC = 0x0010
  159. WAVECAPS_SAMPLEACCURATE = 0x0020
  160. WAVECAPS_DIRECTSOUND = 0x0040
  161. WAVE_INVALIDFORMAT = 0x00000000
  162. WAVE_FORMAT_1M08 = 0x00000001
  163. WAVE_FORMAT_1S08 = 0x00000002
  164. WAVE_FORMAT_1M16 = 0x00000004
  165. WAVE_FORMAT_1S16 = 0x00000008
  166. WAVE_FORMAT_2M08 = 0x00000010
  167. WAVE_FORMAT_2S08 = 0x00000020
  168. WAVE_FORMAT_2M16 = 0x00000040
  169. WAVE_FORMAT_2S16 = 0x00000080
  170. WAVE_FORMAT_4M08 = 0x00000100
  171. WAVE_FORMAT_4S08 = 0x00000200
  172. WAVE_FORMAT_4M16 = 0x00000400
  173. WAVE_FORMAT_4S16 = 0x00000800
  174. WAVE_FORMAT_PCM = 1
  175. WAVE_FORMAT_IEEE_FLOAT = 3
  176. MIDIERR_UNPREPARED = MIDIERR_BASE + 0
  177. MIDIERR_STILLPLAYING = MIDIERR_BASE + 1
  178. MIDIERR_NOMAP = MIDIERR_BASE + 2
  179. MIDIERR_NOTREADY = MIDIERR_BASE + 3
  180. MIDIERR_NODEVICE = MIDIERR_BASE + 4
  181. MIDIERR_INVALIDSETUP = MIDIERR_BASE + 5
  182. MIDIERR_BADOPENMODE = MIDIERR_BASE + 6
  183. MIDIERR_DONT_CONTINUE = MIDIERR_BASE + 7
  184. MIDIERR_LASTERROR = MIDIERR_BASE + 7
  185. MIDIPATCHSIZE = 128
  186. MIM_OPEN = MM_MIM_OPEN
  187. MIM_CLOSE = MM_MIM_CLOSE
  188. MIM_DATA = MM_MIM_DATA
  189. MIM_LONGDATA = MM_MIM_LONGDATA
  190. MIM_ERROR = MM_MIM_ERROR
  191. MIM_LONGERROR = MM_MIM_LONGERROR
  192. MOM_OPEN = MM_MOM_OPEN
  193. MOM_CLOSE = MM_MOM_CLOSE
  194. MOM_DONE = MM_MOM_DONE
  195. MIM_MOREDATA = MM_MIM_MOREDATA
  196. MOM_POSITIONCB = MM_MOM_POSITIONCB
  197. MIDI_IO_STATUS = 0x00000020
  198. MIDI_CACHE_ALL = 1
  199. MIDI_CACHE_BESTFIT = 2
  200. MIDI_CACHE_QUERY = 3
  201. MIDI_UNCACHE = 4
  202. MOD_MIDIPORT = 1
  203. MOD_SYNTH = 2
  204. MOD_SQSYNTH = 3
  205. MOD_FMSYNTH = 4
  206. MOD_MAPPER = 5
  207. MIDICAPS_VOLUME = 0x0001
  208. MIDICAPS_LRVOLUME = 0x0002
  209. MIDICAPS_CACHE = 0x0004
  210. MIDICAPS_STREAM = 0x0008
  211. MHDR_DONE = 0x00000001
  212. MHDR_PREPARED = 0x00000002
  213. MHDR_INQUEUE = 0x00000004
  214. MHDR_ISSTRM = 0x00000008
  215. MEVT_F_SHORT = 0x00000000
  216. MEVT_F_LONG = -2147483648 # 0x80000000
  217. MEVT_F_CALLBACK = 0x40000000
  218. def MEVT_EVENTTYPE(x):
  219. return (BYTE)(((x) >> 24) & 0xFF)
  220. def MEVT_EVENTPARM(x):
  221. return (DWORD)((x) & 0x00FFFFFF)
  222. MIDISTRM_ERROR = -2
  223. MIDIPROP_SET = -2147483648 # 0x80000000
  224. MIDIPROP_GET = 0x40000000
  225. MIDIPROP_TIMEDIV = 0x00000001
  226. MIDIPROP_TEMPO = 0x00000002
  227. AUXCAPS_CDAUDIO = 1
  228. AUXCAPS_AUXIN = 2
  229. AUXCAPS_VOLUME = 0x0001
  230. AUXCAPS_LRVOLUME = 0x0002
  231. MIXER_SHORT_NAME_CHARS = 16
  232. MIXER_LONG_NAME_CHARS = 64
  233. MIXERR_INVALLINE = MIXERR_BASE + 0
  234. MIXERR_INVALCONTROL = MIXERR_BASE + 1
  235. MIXERR_INVALVALUE = MIXERR_BASE + 2
  236. MIXERR_LASTERROR = MIXERR_BASE + 2
  237. MIXER_OBJECTF_HANDLE = -2147483648 # 0x80000000
  238. MIXER_OBJECTF_MIXER = 0x00000000
  239. MIXER_OBJECTF_HMIXER = MIXER_OBJECTF_HANDLE | MIXER_OBJECTF_MIXER
  240. MIXER_OBJECTF_WAVEOUT = 0x10000000
  241. MIXER_OBJECTF_HWAVEOUT = MIXER_OBJECTF_HANDLE | MIXER_OBJECTF_WAVEOUT
  242. MIXER_OBJECTF_WAVEIN = 0x20000000
  243. MIXER_OBJECTF_HWAVEIN = MIXER_OBJECTF_HANDLE | MIXER_OBJECTF_WAVEIN
  244. MIXER_OBJECTF_MIDIOUT = 0x30000000
  245. MIXER_OBJECTF_HMIDIOUT = MIXER_OBJECTF_HANDLE | MIXER_OBJECTF_MIDIOUT
  246. MIXER_OBJECTF_MIDIIN = 0x40000000
  247. MIXER_OBJECTF_HMIDIIN = MIXER_OBJECTF_HANDLE | MIXER_OBJECTF_MIDIIN
  248. MIXER_OBJECTF_AUX = 0x50000000
  249. MIXERLINE_LINEF_ACTIVE = 0x00000001
  250. MIXERLINE_LINEF_DISCONNECTED = 0x00008000
  251. MIXERLINE_LINEF_SOURCE = -2147483648 # 0x80000000
  252. MIXERLINE_COMPONENTTYPE_DST_FIRST = 0x00000000
  253. MIXERLINE_COMPONENTTYPE_DST_UNDEFINED = MIXERLINE_COMPONENTTYPE_DST_FIRST + 0
  254. MIXERLINE_COMPONENTTYPE_DST_DIGITAL = MIXERLINE_COMPONENTTYPE_DST_FIRST + 1
  255. MIXERLINE_COMPONENTTYPE_DST_LINE = MIXERLINE_COMPONENTTYPE_DST_FIRST + 2
  256. MIXERLINE_COMPONENTTYPE_DST_MONITOR = MIXERLINE_COMPONENTTYPE_DST_FIRST + 3
  257. MIXERLINE_COMPONENTTYPE_DST_SPEAKERS = MIXERLINE_COMPONENTTYPE_DST_FIRST + 4
  258. MIXERLINE_COMPONENTTYPE_DST_HEADPHONES = MIXERLINE_COMPONENTTYPE_DST_FIRST + 5
  259. MIXERLINE_COMPONENTTYPE_DST_TELEPHONE = MIXERLINE_COMPONENTTYPE_DST_FIRST + 6
  260. MIXERLINE_COMPONENTTYPE_DST_WAVEIN = MIXERLINE_COMPONENTTYPE_DST_FIRST + 7
  261. MIXERLINE_COMPONENTTYPE_DST_VOICEIN = MIXERLINE_COMPONENTTYPE_DST_FIRST + 8
  262. MIXERLINE_COMPONENTTYPE_DST_LAST = MIXERLINE_COMPONENTTYPE_DST_FIRST + 8
  263. MIXERLINE_COMPONENTTYPE_SRC_FIRST = 0x00001000
  264. MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED = MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0
  265. MIXERLINE_COMPONENTTYPE_SRC_DIGITAL = MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1
  266. MIXERLINE_COMPONENTTYPE_SRC_LINE = MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2
  267. MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE = MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3
  268. MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER = MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4
  269. MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC = MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5
  270. MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE = MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6
  271. MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER = MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7
  272. MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT = MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8
  273. MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY = MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9
  274. MIXERLINE_COMPONENTTYPE_SRC_ANALOG = MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10
  275. MIXERLINE_COMPONENTTYPE_SRC_LAST = MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10
  276. MIXERLINE_TARGETTYPE_UNDEFINED = 0
  277. MIXERLINE_TARGETTYPE_WAVEOUT = 1
  278. MIXERLINE_TARGETTYPE_WAVEIN = 2
  279. MIXERLINE_TARGETTYPE_MIDIOUT = 3
  280. MIXERLINE_TARGETTYPE_MIDIIN = 4
  281. MIXERLINE_TARGETTYPE_AUX = 5
  282. MIXER_GETLINEINFOF_DESTINATION = 0x00000000
  283. MIXER_GETLINEINFOF_SOURCE = 0x00000001
  284. MIXER_GETLINEINFOF_LINEID = 0x00000002
  285. MIXER_GETLINEINFOF_COMPONENTTYPE = 0x00000003
  286. MIXER_GETLINEINFOF_TARGETTYPE = 0x00000004
  287. MIXER_GETLINEINFOF_QUERYMASK = 0x0000000F
  288. MIXERCONTROL_CONTROLF_UNIFORM = 0x00000001
  289. MIXERCONTROL_CONTROLF_MULTIPLE = 0x00000002
  290. MIXERCONTROL_CONTROLF_DISABLED = -2147483648 # 0x80000000
  291. MIXERCONTROL_CT_CLASS_MASK = -268435456 # 0xF0000000
  292. MIXERCONTROL_CT_CLASS_CUSTOM = 0x00000000
  293. MIXERCONTROL_CT_CLASS_METER = 0x10000000
  294. MIXERCONTROL_CT_CLASS_SWITCH = 0x20000000
  295. MIXERCONTROL_CT_CLASS_NUMBER = 0x30000000
  296. MIXERCONTROL_CT_CLASS_SLIDER = 0x40000000
  297. MIXERCONTROL_CT_CLASS_FADER = 0x50000000
  298. MIXERCONTROL_CT_CLASS_TIME = 0x60000000
  299. MIXERCONTROL_CT_CLASS_LIST = 0x70000000
  300. MIXERCONTROL_CT_SUBCLASS_MASK = 0x0F000000
  301. MIXERCONTROL_CT_SC_SWITCH_BOOLEAN = 0x00000000
  302. MIXERCONTROL_CT_SC_SWITCH_BUTTON = 0x01000000
  303. MIXERCONTROL_CT_SC_METER_POLLED = 0x00000000
  304. MIXERCONTROL_CT_SC_TIME_MICROSECS = 0x00000000
  305. MIXERCONTROL_CT_SC_TIME_MILLISECS = 0x01000000
  306. MIXERCONTROL_CT_SC_LIST_SINGLE = 0x00000000
  307. MIXERCONTROL_CT_SC_LIST_MULTIPLE = 0x01000000
  308. MIXERCONTROL_CT_UNITS_MASK = 0x00FF0000
  309. MIXERCONTROL_CT_UNITS_CUSTOM = 0x00000000
  310. MIXERCONTROL_CT_UNITS_BOOLEAN = 0x00010000
  311. MIXERCONTROL_CT_UNITS_SIGNED = 0x00020000
  312. MIXERCONTROL_CT_UNITS_UNSIGNED = 0x00030000
  313. MIXERCONTROL_CT_UNITS_DECIBELS = 0x00040000
  314. MIXERCONTROL_CT_UNITS_PERCENT = 0x00050000
  315. MIXERCONTROL_CONTROLTYPE_CUSTOM = (
  316. MIXERCONTROL_CT_CLASS_CUSTOM | MIXERCONTROL_CT_UNITS_CUSTOM
  317. )
  318. MIXERCONTROL_CONTROLTYPE_BOOLEANMETER = (
  319. MIXERCONTROL_CT_CLASS_METER
  320. | MIXERCONTROL_CT_SC_METER_POLLED
  321. | MIXERCONTROL_CT_UNITS_BOOLEAN
  322. )
  323. MIXERCONTROL_CONTROLTYPE_SIGNEDMETER = (
  324. MIXERCONTROL_CT_CLASS_METER
  325. | MIXERCONTROL_CT_SC_METER_POLLED
  326. | MIXERCONTROL_CT_UNITS_SIGNED
  327. )
  328. MIXERCONTROL_CONTROLTYPE_PEAKMETER = MIXERCONTROL_CONTROLTYPE_SIGNEDMETER + 1
  329. MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER = (
  330. MIXERCONTROL_CT_CLASS_METER
  331. | MIXERCONTROL_CT_SC_METER_POLLED
  332. | MIXERCONTROL_CT_UNITS_UNSIGNED
  333. )
  334. MIXERCONTROL_CONTROLTYPE_BOOLEAN = (
  335. MIXERCONTROL_CT_CLASS_SWITCH
  336. | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN
  337. | MIXERCONTROL_CT_UNITS_BOOLEAN
  338. )
  339. MIXERCONTROL_CONTROLTYPE_ONOFF = MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1
  340. MIXERCONTROL_CONTROLTYPE_MUTE = MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2
  341. MIXERCONTROL_CONTROLTYPE_MONO = MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3
  342. MIXERCONTROL_CONTROLTYPE_LOUDNESS = MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4
  343. MIXERCONTROL_CONTROLTYPE_STEREOENH = MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5
  344. MIXERCONTROL_CONTROLTYPE_BUTTON = (
  345. MIXERCONTROL_CT_CLASS_SWITCH
  346. | MIXERCONTROL_CT_SC_SWITCH_BUTTON
  347. | MIXERCONTROL_CT_UNITS_BOOLEAN
  348. )
  349. MIXERCONTROL_CONTROLTYPE_DECIBELS = (
  350. MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_DECIBELS
  351. )
  352. MIXERCONTROL_CONTROLTYPE_SIGNED = (
  353. MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_SIGNED
  354. )
  355. MIXERCONTROL_CONTROLTYPE_UNSIGNED = (
  356. MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_UNSIGNED
  357. )
  358. MIXERCONTROL_CONTROLTYPE_PERCENT = (
  359. MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_PERCENT
  360. )
  361. MIXERCONTROL_CONTROLTYPE_SLIDER = (
  362. MIXERCONTROL_CT_CLASS_SLIDER | MIXERCONTROL_CT_UNITS_SIGNED
  363. )
  364. MIXERCONTROL_CONTROLTYPE_PAN = MIXERCONTROL_CONTROLTYPE_SLIDER + 1
  365. MIXERCONTROL_CONTROLTYPE_QSOUNDPAN = MIXERCONTROL_CONTROLTYPE_SLIDER + 2
  366. MIXERCONTROL_CONTROLTYPE_FADER = (
  367. MIXERCONTROL_CT_CLASS_FADER | MIXERCONTROL_CT_UNITS_UNSIGNED
  368. )
  369. MIXERCONTROL_CONTROLTYPE_VOLUME = MIXERCONTROL_CONTROLTYPE_FADER + 1
  370. MIXERCONTROL_CONTROLTYPE_BASS = MIXERCONTROL_CONTROLTYPE_FADER + 2
  371. MIXERCONTROL_CONTROLTYPE_TREBLE = MIXERCONTROL_CONTROLTYPE_FADER + 3
  372. MIXERCONTROL_CONTROLTYPE_EQUALIZER = MIXERCONTROL_CONTROLTYPE_FADER + 4
  373. MIXERCONTROL_CONTROLTYPE_SINGLESELECT = (
  374. MIXERCONTROL_CT_CLASS_LIST
  375. | MIXERCONTROL_CT_SC_LIST_SINGLE
  376. | MIXERCONTROL_CT_UNITS_BOOLEAN
  377. )
  378. MIXERCONTROL_CONTROLTYPE_MUX = MIXERCONTROL_CONTROLTYPE_SINGLESELECT + 1
  379. MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT = (
  380. MIXERCONTROL_CT_CLASS_LIST
  381. | MIXERCONTROL_CT_SC_LIST_MULTIPLE
  382. | MIXERCONTROL_CT_UNITS_BOOLEAN
  383. )
  384. MIXERCONTROL_CONTROLTYPE_MIXER = MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT + 1
  385. MIXERCONTROL_CONTROLTYPE_MICROTIME = (
  386. MIXERCONTROL_CT_CLASS_TIME
  387. | MIXERCONTROL_CT_SC_TIME_MICROSECS
  388. | MIXERCONTROL_CT_UNITS_UNSIGNED
  389. )
  390. MIXERCONTROL_CONTROLTYPE_MILLITIME = (
  391. MIXERCONTROL_CT_CLASS_TIME
  392. | MIXERCONTROL_CT_SC_TIME_MILLISECS
  393. | MIXERCONTROL_CT_UNITS_UNSIGNED
  394. )
  395. MIXER_GETLINECONTROLSF_ALL = 0x00000000
  396. MIXER_GETLINECONTROLSF_ONEBYID = 0x00000001
  397. MIXER_GETLINECONTROLSF_ONEBYTYPE = 0x00000002
  398. MIXER_GETLINECONTROLSF_QUERYMASK = 0x0000000F
  399. MIXER_GETCONTROLDETAILSF_VALUE = 0x00000000
  400. MIXER_GETCONTROLDETAILSF_LISTTEXT = 0x00000001
  401. MIXER_GETCONTROLDETAILSF_QUERYMASK = 0x0000000F
  402. MIXER_SETCONTROLDETAILSF_VALUE = 0x00000000
  403. MIXER_SETCONTROLDETAILSF_CUSTOM = 0x00000001
  404. MIXER_SETCONTROLDETAILSF_QUERYMASK = 0x0000000F
  405. TIMERR_NOERROR = 0
  406. TIMERR_NOCANDO = TIMERR_BASE + 1
  407. TIMERR_STRUCT = TIMERR_BASE + 33
  408. TIME_ONESHOT = 0x0000
  409. TIME_PERIODIC = 0x0001
  410. TIME_CALLBACK_FUNCTION = 0x0000
  411. TIME_CALLBACK_EVENT_SET = 0x0010
  412. TIME_CALLBACK_EVENT_PULSE = 0x0020
  413. JOYERR_NOERROR = 0
  414. JOYERR_PARMS = JOYERR_BASE + 5
  415. JOYERR_NOCANDO = JOYERR_BASE + 6
  416. JOYERR_UNPLUGGED = JOYERR_BASE + 7
  417. JOY_BUTTON1 = 0x0001
  418. JOY_BUTTON2 = 0x0002
  419. JOY_BUTTON3 = 0x0004
  420. JOY_BUTTON4 = 0x0008
  421. JOY_BUTTON1CHG = 0x0100
  422. JOY_BUTTON2CHG = 0x0200
  423. JOY_BUTTON3CHG = 0x0400
  424. JOY_BUTTON4CHG = 0x0800
  425. JOY_BUTTON5 = 0x00000010
  426. JOY_BUTTON6 = 0x00000020
  427. JOY_BUTTON7 = 0x00000040
  428. JOY_BUTTON8 = 0x00000080
  429. JOY_BUTTON9 = 0x00000100
  430. JOY_BUTTON10 = 0x00000200
  431. JOY_BUTTON11 = 0x00000400
  432. JOY_BUTTON12 = 0x00000800
  433. JOY_BUTTON13 = 0x00001000
  434. JOY_BUTTON14 = 0x00002000
  435. JOY_BUTTON15 = 0x00004000
  436. JOY_BUTTON16 = 0x00008000
  437. JOY_BUTTON17 = 0x00010000
  438. JOY_BUTTON18 = 0x00020000
  439. JOY_BUTTON19 = 0x00040000
  440. JOY_BUTTON20 = 0x00080000
  441. JOY_BUTTON21 = 0x00100000
  442. JOY_BUTTON22 = 0x00200000
  443. JOY_BUTTON23 = 0x00400000
  444. JOY_BUTTON24 = 0x00800000
  445. JOY_BUTTON25 = 0x01000000
  446. JOY_BUTTON26 = 0x02000000
  447. JOY_BUTTON27 = 0x04000000
  448. JOY_BUTTON28 = 0x08000000
  449. JOY_BUTTON29 = 0x10000000
  450. JOY_BUTTON30 = 0x20000000
  451. JOY_BUTTON31 = 0x40000000
  452. JOY_BUTTON32 = -2147483648 # 0x80000000
  453. JOY_POVFORWARD = 0
  454. JOY_POVRIGHT = 9000
  455. JOY_POVBACKWARD = 18000
  456. JOY_POVLEFT = 27000
  457. JOY_RETURNX = 0x00000001
  458. JOY_RETURNY = 0x00000002
  459. JOY_RETURNZ = 0x00000004
  460. JOY_RETURNR = 0x00000008
  461. JOY_RETURNU = 0x00000010
  462. JOY_RETURNV = 0x00000020
  463. JOY_RETURNPOV = 0x00000040
  464. JOY_RETURNBUTTONS = 0x00000080
  465. JOY_RETURNRAWDATA = 0x00000100
  466. JOY_RETURNPOVCTS = 0x00000200
  467. JOY_RETURNCENTERED = 0x00000400
  468. JOY_USEDEADZONE = 0x00000800
  469. JOY_RETURNALL = (
  470. JOY_RETURNX
  471. | JOY_RETURNY
  472. | JOY_RETURNZ
  473. | JOY_RETURNR
  474. | JOY_RETURNU
  475. | JOY_RETURNV
  476. | JOY_RETURNPOV
  477. | JOY_RETURNBUTTONS
  478. )
  479. JOY_CAL_READALWAYS = 0x00010000
  480. JOY_CAL_READXYONLY = 0x00020000
  481. JOY_CAL_READ3 = 0x00040000
  482. JOY_CAL_READ4 = 0x00080000
  483. JOY_CAL_READXONLY = 0x00100000
  484. JOY_CAL_READYONLY = 0x00200000
  485. JOY_CAL_READ5 = 0x00400000
  486. JOY_CAL_READ6 = 0x00800000
  487. JOY_CAL_READZONLY = 0x01000000
  488. JOY_CAL_READRONLY = 0x02000000
  489. JOY_CAL_READUONLY = 0x04000000
  490. JOY_CAL_READVONLY = 0x08000000
  491. JOYSTICKID1 = 0
  492. JOYSTICKID2 = 1
  493. JOYCAPS_HASZ = 0x0001
  494. JOYCAPS_HASR = 0x0002
  495. JOYCAPS_HASU = 0x0004
  496. JOYCAPS_HASV = 0x0008
  497. JOYCAPS_HASPOV = 0x0010
  498. JOYCAPS_POV4DIR = 0x0020
  499. JOYCAPS_POVCTS = 0x0040
  500. MMIOERR_BASE = 256
  501. MMIOERR_FILENOTFOUND = MMIOERR_BASE + 1
  502. MMIOERR_OUTOFMEMORY = MMIOERR_BASE + 2
  503. MMIOERR_CANNOTOPEN = MMIOERR_BASE + 3
  504. MMIOERR_CANNOTCLOSE = MMIOERR_BASE + 4
  505. MMIOERR_CANNOTREAD = MMIOERR_BASE + 5
  506. MMIOERR_CANNOTWRITE = MMIOERR_BASE + 6
  507. MMIOERR_CANNOTSEEK = MMIOERR_BASE + 7
  508. MMIOERR_CANNOTEXPAND = MMIOERR_BASE + 8
  509. MMIOERR_CHUNKNOTFOUND = MMIOERR_BASE + 9
  510. MMIOERR_UNBUFFERED = MMIOERR_BASE + 10
  511. MMIOERR_PATHNOTFOUND = MMIOERR_BASE + 11
  512. MMIOERR_ACCESSDENIED = MMIOERR_BASE + 12
  513. MMIOERR_SHARINGVIOLATION = MMIOERR_BASE + 13
  514. MMIOERR_NETWORKERROR = MMIOERR_BASE + 14
  515. MMIOERR_TOOMANYOPENFILES = MMIOERR_BASE + 15
  516. MMIOERR_INVALIDFILE = MMIOERR_BASE + 16
  517. CFSEPCHAR = ord("+")
  518. MMIO_RWMODE = 0x00000003
  519. MMIO_SHAREMODE = 0x00000070
  520. MMIO_CREATE = 0x00001000
  521. MMIO_PARSE = 0x00000100
  522. MMIO_DELETE = 0x00000200
  523. MMIO_EXIST = 0x00004000
  524. MMIO_ALLOCBUF = 0x00010000
  525. MMIO_GETTEMP = 0x00020000
  526. MMIO_DIRTY = 0x10000000
  527. MMIO_READ = 0x00000000
  528. MMIO_WRITE = 0x00000001
  529. MMIO_READWRITE = 0x00000002
  530. MMIO_COMPAT = 0x00000000
  531. MMIO_EXCLUSIVE = 0x00000010
  532. MMIO_DENYWRITE = 0x00000020
  533. MMIO_DENYREAD = 0x00000030
  534. MMIO_DENYNONE = 0x00000040
  535. MMIO_FHOPEN = 0x0010
  536. MMIO_EMPTYBUF = 0x0010
  537. MMIO_TOUPPER = 0x0010
  538. MMIO_INSTALLPROC = 0x00010000
  539. MMIO_GLOBALPROC = 0x10000000
  540. MMIO_REMOVEPROC = 0x00020000
  541. MMIO_UNICODEPROC = 0x01000000
  542. MMIO_FINDPROC = 0x00040000
  543. MMIO_FINDCHUNK = 0x0010
  544. MMIO_FINDRIFF = 0x0020
  545. MMIO_FINDLIST = 0x0040
  546. MMIO_CREATERIFF = 0x0020
  547. MMIO_CREATELIST = 0x0040
  548. MMIOM_READ = MMIO_READ
  549. MMIOM_WRITE = MMIO_WRITE
  550. MMIOM_SEEK = 2
  551. MMIOM_OPEN = 3
  552. MMIOM_CLOSE = 4
  553. MMIOM_WRITEFLUSH = 5
  554. MMIOM_RENAME = 6
  555. MMIOM_USER = 0x8000
  556. SEEK_SET = 0
  557. SEEK_CUR = 1
  558. SEEK_END = 2
  559. MMIO_DEFAULTBUFFER = 8192
  560. MCIERR_INVALID_DEVICE_ID = MCIERR_BASE + 1
  561. MCIERR_UNRECOGNIZED_KEYWORD = MCIERR_BASE + 3
  562. MCIERR_UNRECOGNIZED_COMMAND = MCIERR_BASE + 5
  563. MCIERR_HARDWARE = MCIERR_BASE + 6
  564. MCIERR_INVALID_DEVICE_NAME = MCIERR_BASE + 7
  565. MCIERR_OUT_OF_MEMORY = MCIERR_BASE + 8
  566. MCIERR_DEVICE_OPEN = MCIERR_BASE + 9
  567. MCIERR_CANNOT_LOAD_DRIVER = MCIERR_BASE + 10
  568. MCIERR_MISSING_COMMAND_STRING = MCIERR_BASE + 11
  569. MCIERR_PARAM_OVERFLOW = MCIERR_BASE + 12
  570. MCIERR_MISSING_STRING_ARGUMENT = MCIERR_BASE + 13
  571. MCIERR_BAD_INTEGER = MCIERR_BASE + 14
  572. MCIERR_PARSER_INTERNAL = MCIERR_BASE + 15
  573. MCIERR_DRIVER_INTERNAL = MCIERR_BASE + 16
  574. MCIERR_MISSING_PARAMETER = MCIERR_BASE + 17
  575. MCIERR_UNSUPPORTED_FUNCTION = MCIERR_BASE + 18
  576. MCIERR_FILE_NOT_FOUND = MCIERR_BASE + 19
  577. MCIERR_DEVICE_NOT_READY = MCIERR_BASE + 20
  578. MCIERR_INTERNAL = MCIERR_BASE + 21
  579. MCIERR_DRIVER = MCIERR_BASE + 22
  580. MCIERR_CANNOT_USE_ALL = MCIERR_BASE + 23
  581. MCIERR_MULTIPLE = MCIERR_BASE + 24
  582. MCIERR_EXTENSION_NOT_FOUND = MCIERR_BASE + 25
  583. MCIERR_OUTOFRANGE = MCIERR_BASE + 26
  584. MCIERR_FLAGS_NOT_COMPATIBLE = MCIERR_BASE + 28
  585. MCIERR_FILE_NOT_SAVED = MCIERR_BASE + 30
  586. MCIERR_DEVICE_TYPE_REQUIRED = MCIERR_BASE + 31
  587. MCIERR_DEVICE_LOCKED = MCIERR_BASE + 32
  588. MCIERR_DUPLICATE_ALIAS = MCIERR_BASE + 33
  589. MCIERR_BAD_CONSTANT = MCIERR_BASE + 34
  590. MCIERR_MUST_USE_SHAREABLE = MCIERR_BASE + 35
  591. MCIERR_MISSING_DEVICE_NAME = MCIERR_BASE + 36
  592. MCIERR_BAD_TIME_FORMAT = MCIERR_BASE + 37
  593. MCIERR_NO_CLOSING_QUOTE = MCIERR_BASE + 38
  594. MCIERR_DUPLICATE_FLAGS = MCIERR_BASE + 39
  595. MCIERR_INVALID_FILE = MCIERR_BASE + 40
  596. MCIERR_NULL_PARAMETER_BLOCK = MCIERR_BASE + 41
  597. MCIERR_UNNAMED_RESOURCE = MCIERR_BASE + 42
  598. MCIERR_NEW_REQUIRES_ALIAS = MCIERR_BASE + 43
  599. MCIERR_NOTIFY_ON_AUTO_OPEN = MCIERR_BASE + 44
  600. MCIERR_NO_ELEMENT_ALLOWED = MCIERR_BASE + 45
  601. MCIERR_NONAPPLICABLE_FUNCTION = MCIERR_BASE + 46
  602. MCIERR_ILLEGAL_FOR_AUTO_OPEN = MCIERR_BASE + 47
  603. MCIERR_FILENAME_REQUIRED = MCIERR_BASE + 48
  604. MCIERR_EXTRA_CHARACTERS = MCIERR_BASE + 49
  605. MCIERR_DEVICE_NOT_INSTALLED = MCIERR_BASE + 50
  606. MCIERR_GET_CD = MCIERR_BASE + 51
  607. MCIERR_SET_CD = MCIERR_BASE + 52
  608. MCIERR_SET_DRIVE = MCIERR_BASE + 53
  609. MCIERR_DEVICE_LENGTH = MCIERR_BASE + 54
  610. MCIERR_DEVICE_ORD_LENGTH = MCIERR_BASE + 55
  611. MCIERR_NO_INTEGER = MCIERR_BASE + 56
  612. MCIERR_WAVE_OUTPUTSINUSE = MCIERR_BASE + 64
  613. MCIERR_WAVE_SETOUTPUTINUSE = MCIERR_BASE + 65
  614. MCIERR_WAVE_INPUTSINUSE = MCIERR_BASE + 66
  615. MCIERR_WAVE_SETINPUTINUSE = MCIERR_BASE + 67
  616. MCIERR_WAVE_OUTPUTUNSPECIFIED = MCIERR_BASE + 68
  617. MCIERR_WAVE_INPUTUNSPECIFIED = MCIERR_BASE + 69
  618. MCIERR_WAVE_OUTPUTSUNSUITABLE = MCIERR_BASE + 70
  619. MCIERR_WAVE_SETOUTPUTUNSUITABLE = MCIERR_BASE + 71
  620. MCIERR_WAVE_INPUTSUNSUITABLE = MCIERR_BASE + 72
  621. MCIERR_WAVE_SETINPUTUNSUITABLE = MCIERR_BASE + 73
  622. MCIERR_SEQ_DIV_INCOMPATIBLE = MCIERR_BASE + 80
  623. MCIERR_SEQ_PORT_INUSE = MCIERR_BASE + 81
  624. MCIERR_SEQ_PORT_NONEXISTENT = MCIERR_BASE + 82
  625. MCIERR_SEQ_PORT_MAPNODEVICE = MCIERR_BASE + 83
  626. MCIERR_SEQ_PORT_MISCERROR = MCIERR_BASE + 84
  627. MCIERR_SEQ_TIMER = MCIERR_BASE + 85
  628. MCIERR_SEQ_PORTUNSPECIFIED = MCIERR_BASE + 86
  629. MCIERR_SEQ_NOMIDIPRESENT = MCIERR_BASE + 87
  630. MCIERR_NO_WINDOW = MCIERR_BASE + 90
  631. MCIERR_CREATEWINDOW = MCIERR_BASE + 91
  632. MCIERR_FILE_READ = MCIERR_BASE + 92
  633. MCIERR_FILE_WRITE = MCIERR_BASE + 93
  634. MCIERR_NO_IDENTITY = MCIERR_BASE + 94
  635. MCIERR_CUSTOM_DRIVER_BASE = MCIERR_BASE + 256
  636. MCI_FIRST = DRV_MCI_FIRST
  637. MCI_OPEN = 0x0803
  638. MCI_CLOSE = 0x0804
  639. MCI_ESCAPE = 0x0805
  640. MCI_PLAY = 0x0806
  641. MCI_SEEK = 0x0807
  642. MCI_STOP = 0x0808
  643. MCI_PAUSE = 0x0809
  644. MCI_INFO = 0x080A
  645. MCI_GETDEVCAPS = 0x080B
  646. MCI_SPIN = 0x080C
  647. MCI_SET = 0x080D
  648. MCI_STEP = 0x080E
  649. MCI_RECORD = 0x080F
  650. MCI_SYSINFO = 0x0810
  651. MCI_BREAK = 0x0811
  652. MCI_SAVE = 0x0813
  653. MCI_STATUS = 0x0814
  654. MCI_CUE = 0x0830
  655. MCI_REALIZE = 0x0840
  656. MCI_WINDOW = 0x0841
  657. MCI_PUT = 0x0842
  658. MCI_WHERE = 0x0843
  659. MCI_FREEZE = 0x0844
  660. MCI_UNFREEZE = 0x0845
  661. MCI_LOAD = 0x0850
  662. MCI_CUT = 0x0851
  663. MCI_COPY = 0x0852
  664. MCI_PASTE = 0x0853
  665. MCI_UPDATE = 0x0854
  666. MCI_RESUME = 0x0855
  667. MCI_DELETE = 0x0856
  668. MCI_USER_MESSAGES = DRV_MCI_FIRST + 0x400
  669. MCI_LAST = 0x0FFF
  670. MCI_DEVTYPE_VCR = 513
  671. MCI_DEVTYPE_VIDEODISC = 514
  672. MCI_DEVTYPE_OVERLAY = 515
  673. MCI_DEVTYPE_CD_AUDIO = 516
  674. MCI_DEVTYPE_DAT = 517
  675. MCI_DEVTYPE_SCANNER = 518
  676. MCI_DEVTYPE_ANIMATION = 519
  677. MCI_DEVTYPE_DIGITAL_VIDEO = 520
  678. MCI_DEVTYPE_OTHER = 521
  679. MCI_DEVTYPE_WAVEFORM_AUDIO = 522
  680. MCI_DEVTYPE_SEQUENCER = 523
  681. MCI_DEVTYPE_FIRST = MCI_DEVTYPE_VCR
  682. MCI_DEVTYPE_LAST = MCI_DEVTYPE_SEQUENCER
  683. MCI_DEVTYPE_FIRST_USER = 0x1000
  684. MCI_MODE_NOT_READY = MCI_STRING_OFFSET + 12
  685. MCI_MODE_STOP = MCI_STRING_OFFSET + 13
  686. MCI_MODE_PLAY = MCI_STRING_OFFSET + 14
  687. MCI_MODE_RECORD = MCI_STRING_OFFSET + 15
  688. MCI_MODE_SEEK = MCI_STRING_OFFSET + 16
  689. MCI_MODE_PAUSE = MCI_STRING_OFFSET + 17
  690. MCI_MODE_OPEN = MCI_STRING_OFFSET + 18
  691. MCI_FORMAT_MILLISECONDS = 0
  692. MCI_FORMAT_HMS = 1
  693. MCI_FORMAT_MSF = 2
  694. MCI_FORMAT_FRAMES = 3
  695. MCI_FORMAT_SMPTE_24 = 4
  696. MCI_FORMAT_SMPTE_25 = 5
  697. MCI_FORMAT_SMPTE_30 = 6
  698. MCI_FORMAT_SMPTE_30DROP = 7
  699. MCI_FORMAT_BYTES = 8
  700. MCI_FORMAT_SAMPLES = 9
  701. MCI_FORMAT_TMSF = 10
  702. def MCI_MSF_MINUTE(msf):
  703. return (BYTE)(msf)
  704. def MCI_MSF_SECOND(msf):
  705. return (BYTE)(((WORD)(msf)) >> 8)
  706. def MCI_MSF_FRAME(msf):
  707. return (BYTE)((msf) >> 16)
  708. def MCI_TMSF_TRACK(tmsf):
  709. return (BYTE)(tmsf)
  710. def MCI_TMSF_MINUTE(tmsf):
  711. return (BYTE)(((WORD)(tmsf)) >> 8)
  712. def MCI_TMSF_SECOND(tmsf):
  713. return (BYTE)((tmsf) >> 16)
  714. def MCI_TMSF_FRAME(tmsf):
  715. return (BYTE)((tmsf) >> 24)
  716. def MCI_HMS_HOUR(hms):
  717. return (BYTE)(hms)
  718. def MCI_HMS_MINUTE(hms):
  719. return (BYTE)(((WORD)(hms)) >> 8)
  720. def MCI_HMS_SECOND(hms):
  721. return (BYTE)((hms) >> 16)
  722. MCI_NOTIFY_SUCCESSFUL = 0x0001
  723. MCI_NOTIFY_SUPERSEDED = 0x0002
  724. MCI_NOTIFY_ABORTED = 0x0004
  725. MCI_NOTIFY_FAILURE = 0x0008
  726. MCI_NOTIFY = 0x00000001
  727. MCI_WAIT = 0x00000002
  728. MCI_FROM = 0x00000004
  729. MCI_TO = 0x00000008
  730. MCI_TRACK = 0x00000010
  731. MCI_OPEN_SHAREABLE = 0x00000100
  732. MCI_OPEN_ELEMENT = 0x00000200
  733. MCI_OPEN_ALIAS = 0x00000400
  734. MCI_OPEN_ELEMENT_ID = 0x00000800
  735. MCI_OPEN_TYPE_ID = 0x00001000
  736. MCI_OPEN_TYPE = 0x00002000
  737. MCI_SEEK_TO_START = 0x00000100
  738. MCI_SEEK_TO_END = 0x00000200
  739. MCI_STATUS_ITEM = 0x00000100
  740. MCI_STATUS_START = 0x00000200
  741. MCI_STATUS_LENGTH = 0x00000001
  742. MCI_STATUS_POSITION = 0x00000002
  743. MCI_STATUS_NUMBER_OF_TRACKS = 0x00000003
  744. MCI_STATUS_MODE = 0x00000004
  745. MCI_STATUS_MEDIA_PRESENT = 0x00000005
  746. MCI_STATUS_TIME_FORMAT = 0x00000006
  747. MCI_STATUS_READY = 0x00000007
  748. MCI_STATUS_CURRENT_TRACK = 0x00000008
  749. MCI_INFO_PRODUCT = 0x00000100
  750. MCI_INFO_FILE = 0x00000200
  751. MCI_INFO_MEDIA_UPC = 0x00000400
  752. MCI_INFO_MEDIA_IDENTITY = 0x00000800
  753. MCI_INFO_NAME = 0x00001000
  754. MCI_INFO_COPYRIGHT = 0x00002000
  755. MCI_GETDEVCAPS_ITEM = 0x00000100
  756. MCI_GETDEVCAPS_CAN_RECORD = 0x00000001
  757. MCI_GETDEVCAPS_HAS_AUDIO = 0x00000002
  758. MCI_GETDEVCAPS_HAS_VIDEO = 0x00000003
  759. MCI_GETDEVCAPS_DEVICE_TYPE = 0x00000004
  760. MCI_GETDEVCAPS_USES_FILES = 0x00000005
  761. MCI_GETDEVCAPS_COMPOUND_DEVICE = 0x00000006
  762. MCI_GETDEVCAPS_CAN_EJECT = 0x00000007
  763. MCI_GETDEVCAPS_CAN_PLAY = 0x00000008
  764. MCI_GETDEVCAPS_CAN_SAVE = 0x00000009
  765. MCI_SYSINFO_QUANTITY = 0x00000100
  766. MCI_SYSINFO_OPEN = 0x00000200
  767. MCI_SYSINFO_NAME = 0x00000400
  768. MCI_SYSINFO_INSTALLNAME = 0x00000800
  769. MCI_SET_DOOR_OPEN = 0x00000100
  770. MCI_SET_DOOR_CLOSED = 0x00000200
  771. MCI_SET_TIME_FORMAT = 0x00000400
  772. MCI_SET_AUDIO = 0x00000800
  773. MCI_SET_VIDEO = 0x00001000
  774. MCI_SET_ON = 0x00002000
  775. MCI_SET_OFF = 0x00004000
  776. MCI_SET_AUDIO_ALL = 0x00000000
  777. MCI_SET_AUDIO_LEFT = 0x00000001
  778. MCI_SET_AUDIO_RIGHT = 0x00000002
  779. MCI_BREAK_KEY = 0x00000100
  780. MCI_BREAK_HWND = 0x00000200
  781. MCI_BREAK_OFF = 0x00000400
  782. MCI_RECORD_INSERT = 0x00000100
  783. MCI_RECORD_OVERWRITE = 0x00000200
  784. MCI_SAVE_FILE = 0x00000100
  785. MCI_LOAD_FILE = 0x00000100
  786. MCI_VD_MODE_PARK = MCI_VD_OFFSET + 1
  787. MCI_VD_MEDIA_CLV = MCI_VD_OFFSET + 2
  788. MCI_VD_MEDIA_CAV = MCI_VD_OFFSET + 3
  789. MCI_VD_MEDIA_OTHER = MCI_VD_OFFSET + 4
  790. MCI_VD_FORMAT_TRACK = 0x4001
  791. MCI_VD_PLAY_REVERSE = 0x00010000
  792. MCI_VD_PLAY_FAST = 0x00020000
  793. MCI_VD_PLAY_SPEED = 0x00040000
  794. MCI_VD_PLAY_SCAN = 0x00080000
  795. MCI_VD_PLAY_SLOW = 0x00100000
  796. MCI_VD_SEEK_REVERSE = 0x00010000
  797. MCI_VD_STATUS_SPEED = 0x00004002
  798. MCI_VD_STATUS_FORWARD = 0x00004003
  799. MCI_VD_STATUS_MEDIA_TYPE = 0x00004004
  800. MCI_VD_STATUS_SIDE = 0x00004005
  801. MCI_VD_STATUS_DISC_SIZE = 0x00004006
  802. MCI_VD_GETDEVCAPS_CLV = 0x00010000
  803. MCI_VD_GETDEVCAPS_CAV = 0x00020000
  804. MCI_VD_SPIN_UP = 0x00010000
  805. MCI_VD_SPIN_DOWN = 0x00020000
  806. MCI_VD_GETDEVCAPS_CAN_REVERSE = 0x00004002
  807. MCI_VD_GETDEVCAPS_FAST_RATE = 0x00004003
  808. MCI_VD_GETDEVCAPS_SLOW_RATE = 0x00004004
  809. MCI_VD_GETDEVCAPS_NORMAL_RATE = 0x00004005
  810. MCI_VD_STEP_FRAMES = 0x00010000
  811. MCI_VD_STEP_REVERSE = 0x00020000
  812. MCI_VD_ESCAPE_STRING = 0x00000100
  813. MCI_CDA_STATUS_TYPE_TRACK = 0x00004001
  814. MCI_CDA_TRACK_AUDIO = MCI_CD_OFFSET + 0
  815. MCI_CDA_TRACK_OTHER = MCI_CD_OFFSET + 1
  816. MCI_WAVE_PCM = MCI_WAVE_OFFSET + 0
  817. MCI_WAVE_MAPPER = MCI_WAVE_OFFSET + 1
  818. MCI_WAVE_OPEN_BUFFER = 0x00010000
  819. MCI_WAVE_SET_FORMATTAG = 0x00010000
  820. MCI_WAVE_SET_CHANNELS = 0x00020000
  821. MCI_WAVE_SET_SAMPLESPERSEC = 0x00040000
  822. MCI_WAVE_SET_AVGBYTESPERSEC = 0x00080000
  823. MCI_WAVE_SET_BLOCKALIGN = 0x00100000
  824. MCI_WAVE_SET_BITSPERSAMPLE = 0x00200000
  825. MCI_WAVE_INPUT = 0x00400000
  826. MCI_WAVE_OUTPUT = 0x00800000
  827. MCI_WAVE_STATUS_FORMATTAG = 0x00004001
  828. MCI_WAVE_STATUS_CHANNELS = 0x00004002
  829. MCI_WAVE_STATUS_SAMPLESPERSEC = 0x00004003
  830. MCI_WAVE_STATUS_AVGBYTESPERSEC = 0x00004004
  831. MCI_WAVE_STATUS_BLOCKALIGN = 0x00004005
  832. MCI_WAVE_STATUS_BITSPERSAMPLE = 0x00004006
  833. MCI_WAVE_STATUS_LEVEL = 0x00004007
  834. MCI_WAVE_SET_ANYINPUT = 0x04000000
  835. MCI_WAVE_SET_ANYOUTPUT = 0x08000000
  836. MCI_WAVE_GETDEVCAPS_INPUTS = 0x00004001
  837. MCI_WAVE_GETDEVCAPS_OUTPUTS = 0x00004002
  838. MCI_SEQ_DIV_PPQN = 0 + MCI_SEQ_OFFSET
  839. MCI_SEQ_DIV_SMPTE_24 = 1 + MCI_SEQ_OFFSET
  840. MCI_SEQ_DIV_SMPTE_25 = 2 + MCI_SEQ_OFFSET
  841. MCI_SEQ_DIV_SMPTE_30DROP = 3 + MCI_SEQ_OFFSET
  842. MCI_SEQ_DIV_SMPTE_30 = 4 + MCI_SEQ_OFFSET
  843. MCI_SEQ_FORMAT_SONGPTR = 0x4001
  844. MCI_SEQ_FILE = 0x4002
  845. MCI_SEQ_MIDI = 0x4003
  846. MCI_SEQ_SMPTE = 0x4004
  847. MCI_SEQ_NONE = 65533
  848. MCI_SEQ_MAPPER = 65535
  849. MCI_SEQ_STATUS_TEMPO = 0x00004002
  850. MCI_SEQ_STATUS_PORT = 0x00004003
  851. MCI_SEQ_STATUS_SLAVE = 0x00004007
  852. MCI_SEQ_STATUS_MASTER = 0x00004008
  853. MCI_SEQ_STATUS_OFFSET = 0x00004009
  854. MCI_SEQ_STATUS_DIVTYPE = 0x0000400A
  855. MCI_SEQ_STATUS_NAME = 0x0000400B
  856. MCI_SEQ_STATUS_COPYRIGHT = 0x0000400C
  857. MCI_SEQ_SET_TEMPO = 0x00010000
  858. MCI_SEQ_SET_PORT = 0x00020000
  859. MCI_SEQ_SET_SLAVE = 0x00040000
  860. MCI_SEQ_SET_MASTER = 0x00080000
  861. MCI_SEQ_SET_OFFSET = 0x01000000
  862. MCI_ANIM_OPEN_WS = 0x00010000
  863. MCI_ANIM_OPEN_PARENT = 0x00020000
  864. MCI_ANIM_OPEN_NOSTATIC = 0x00040000
  865. MCI_ANIM_PLAY_SPEED = 0x00010000
  866. MCI_ANIM_PLAY_REVERSE = 0x00020000
  867. MCI_ANIM_PLAY_FAST = 0x00040000
  868. MCI_ANIM_PLAY_SLOW = 0x00080000
  869. MCI_ANIM_PLAY_SCAN = 0x00100000
  870. MCI_ANIM_STEP_REVERSE = 0x00010000
  871. MCI_ANIM_STEP_FRAMES = 0x00020000
  872. MCI_ANIM_STATUS_SPEED = 0x00004001
  873. MCI_ANIM_STATUS_FORWARD = 0x00004002
  874. MCI_ANIM_STATUS_HWND = 0x00004003
  875. MCI_ANIM_STATUS_HPAL = 0x00004004
  876. MCI_ANIM_STATUS_STRETCH = 0x00004005
  877. MCI_ANIM_INFO_TEXT = 0x00010000
  878. MCI_ANIM_GETDEVCAPS_CAN_REVERSE = 0x00004001
  879. MCI_ANIM_GETDEVCAPS_FAST_RATE = 0x00004002
  880. MCI_ANIM_GETDEVCAPS_SLOW_RATE = 0x00004003
  881. MCI_ANIM_GETDEVCAPS_NORMAL_RATE = 0x00004004
  882. MCI_ANIM_GETDEVCAPS_PALETTES = 0x00004006
  883. MCI_ANIM_GETDEVCAPS_CAN_STRETCH = 0x00004007
  884. MCI_ANIM_GETDEVCAPS_MAX_WINDOWS = 0x00004008
  885. MCI_ANIM_REALIZE_NORM = 0x00010000
  886. MCI_ANIM_REALIZE_BKGD = 0x00020000
  887. MCI_ANIM_WINDOW_HWND = 0x00010000
  888. MCI_ANIM_WINDOW_STATE = 0x00040000
  889. MCI_ANIM_WINDOW_TEXT = 0x00080000
  890. MCI_ANIM_WINDOW_ENABLE_STRETCH = 0x00100000
  891. MCI_ANIM_WINDOW_DISABLE_STRETCH = 0x00200000
  892. MCI_ANIM_WINDOW_DEFAULT = 0x00000000
  893. MCI_ANIM_RECT = 0x00010000
  894. MCI_ANIM_PUT_SOURCE = 0x00020000
  895. MCI_ANIM_PUT_DESTINATION = 0x00040000
  896. MCI_ANIM_WHERE_SOURCE = 0x00020000
  897. MCI_ANIM_WHERE_DESTINATION = 0x00040000
  898. MCI_ANIM_UPDATE_HDC = 0x00020000
  899. MCI_OVLY_OPEN_WS = 0x00010000
  900. MCI_OVLY_OPEN_PARENT = 0x00020000
  901. MCI_OVLY_STATUS_HWND = 0x00004001
  902. MCI_OVLY_STATUS_STRETCH = 0x00004002
  903. MCI_OVLY_INFO_TEXT = 0x00010000
  904. MCI_OVLY_GETDEVCAPS_CAN_STRETCH = 0x00004001
  905. MCI_OVLY_GETDEVCAPS_CAN_FREEZE = 0x00004002
  906. MCI_OVLY_GETDEVCAPS_MAX_WINDOWS = 0x00004003
  907. MCI_OVLY_WINDOW_HWND = 0x00010000
  908. MCI_OVLY_WINDOW_STATE = 0x00040000
  909. MCI_OVLY_WINDOW_TEXT = 0x00080000
  910. MCI_OVLY_WINDOW_ENABLE_STRETCH = 0x00100000
  911. MCI_OVLY_WINDOW_DISABLE_STRETCH = 0x00200000
  912. MCI_OVLY_WINDOW_DEFAULT = 0x00000000
  913. MCI_OVLY_RECT = 0x00010000
  914. MCI_OVLY_PUT_SOURCE = 0x00020000
  915. MCI_OVLY_PUT_DESTINATION = 0x00040000
  916. MCI_OVLY_PUT_FRAME = 0x00080000
  917. MCI_OVLY_PUT_VIDEO = 0x00100000
  918. MCI_OVLY_WHERE_SOURCE = 0x00020000
  919. MCI_OVLY_WHERE_DESTINATION = 0x00040000
  920. MCI_OVLY_WHERE_FRAME = 0x00080000
  921. MCI_OVLY_WHERE_VIDEO = 0x00100000
  922. SELECTDIB = 41
  923. def DIBINDEX(n):
  924. return MAKELONG((n), 0x10FF)