mmsystem.py 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867
  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): return ((BYTE)(((x)>>24)&0xFF))
  219. def MEVT_EVENTPARM(x): return ((DWORD)((x)&0x00FFFFFF))
  220. MIDISTRM_ERROR = (-2)
  221. MIDIPROP_SET = -2147483648 # 0x80000000
  222. MIDIPROP_GET = 0x40000000
  223. MIDIPROP_TIMEDIV = 0x00000001
  224. MIDIPROP_TEMPO = 0x00000002
  225. AUXCAPS_CDAUDIO = 1
  226. AUXCAPS_AUXIN = 2
  227. AUXCAPS_VOLUME = 0x0001
  228. AUXCAPS_LRVOLUME = 0x0002
  229. MIXER_SHORT_NAME_CHARS = 16
  230. MIXER_LONG_NAME_CHARS = 64
  231. MIXERR_INVALLINE = (MIXERR_BASE + 0)
  232. MIXERR_INVALCONTROL = (MIXERR_BASE + 1)
  233. MIXERR_INVALVALUE = (MIXERR_BASE + 2)
  234. MIXERR_LASTERROR = (MIXERR_BASE + 2)
  235. MIXER_OBJECTF_HANDLE = -2147483648 # 0x80000000
  236. MIXER_OBJECTF_MIXER = 0x00000000
  237. MIXER_OBJECTF_HMIXER = (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)
  238. MIXER_OBJECTF_WAVEOUT = 0x10000000
  239. MIXER_OBJECTF_HWAVEOUT = (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)
  240. MIXER_OBJECTF_WAVEIN = 0x20000000
  241. MIXER_OBJECTF_HWAVEIN = (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)
  242. MIXER_OBJECTF_MIDIOUT = 0x30000000
  243. MIXER_OBJECTF_HMIDIOUT = (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)
  244. MIXER_OBJECTF_MIDIIN = 0x40000000
  245. MIXER_OBJECTF_HMIDIIN = (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)
  246. MIXER_OBJECTF_AUX = 0x50000000
  247. MIXERLINE_LINEF_ACTIVE = 0x00000001
  248. MIXERLINE_LINEF_DISCONNECTED = 0x00008000
  249. MIXERLINE_LINEF_SOURCE = -2147483648 # 0x80000000
  250. MIXERLINE_COMPONENTTYPE_DST_FIRST = 0x00000000
  251. MIXERLINE_COMPONENTTYPE_DST_UNDEFINED = (MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)
  252. MIXERLINE_COMPONENTTYPE_DST_DIGITAL = (MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)
  253. MIXERLINE_COMPONENTTYPE_DST_LINE = (MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)
  254. MIXERLINE_COMPONENTTYPE_DST_MONITOR = (MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)
  255. MIXERLINE_COMPONENTTYPE_DST_SPEAKERS = (MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)
  256. MIXERLINE_COMPONENTTYPE_DST_HEADPHONES = (MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)
  257. MIXERLINE_COMPONENTTYPE_DST_TELEPHONE = (MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)
  258. MIXERLINE_COMPONENTTYPE_DST_WAVEIN = (MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)
  259. MIXERLINE_COMPONENTTYPE_DST_VOICEIN = (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
  260. MIXERLINE_COMPONENTTYPE_DST_LAST = (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
  261. MIXERLINE_COMPONENTTYPE_SRC_FIRST = 0x00001000
  262. MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED = (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)
  263. MIXERLINE_COMPONENTTYPE_SRC_DIGITAL = (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)
  264. MIXERLINE_COMPONENTTYPE_SRC_LINE = (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)
  265. MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE = (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)
  266. MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER = (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)
  267. MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC = (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)
  268. MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE = (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)
  269. MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER = (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)
  270. MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT = (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)
  271. MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY = (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)
  272. MIXERLINE_COMPONENTTYPE_SRC_ANALOG = (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
  273. MIXERLINE_COMPONENTTYPE_SRC_LAST = (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
  274. MIXERLINE_TARGETTYPE_UNDEFINED = 0
  275. MIXERLINE_TARGETTYPE_WAVEOUT = 1
  276. MIXERLINE_TARGETTYPE_WAVEIN = 2
  277. MIXERLINE_TARGETTYPE_MIDIOUT = 3
  278. MIXERLINE_TARGETTYPE_MIDIIN = 4
  279. MIXERLINE_TARGETTYPE_AUX = 5
  280. MIXER_GETLINEINFOF_DESTINATION = 0x00000000
  281. MIXER_GETLINEINFOF_SOURCE = 0x00000001
  282. MIXER_GETLINEINFOF_LINEID = 0x00000002
  283. MIXER_GETLINEINFOF_COMPONENTTYPE = 0x00000003
  284. MIXER_GETLINEINFOF_TARGETTYPE = 0x00000004
  285. MIXER_GETLINEINFOF_QUERYMASK = 0x0000000F
  286. MIXERCONTROL_CONTROLF_UNIFORM = 0x00000001
  287. MIXERCONTROL_CONTROLF_MULTIPLE = 0x00000002
  288. MIXERCONTROL_CONTROLF_DISABLED = -2147483648 # 0x80000000
  289. MIXERCONTROL_CT_CLASS_MASK = -268435456 # 0xF0000000
  290. MIXERCONTROL_CT_CLASS_CUSTOM = 0x00000000
  291. MIXERCONTROL_CT_CLASS_METER = 0x10000000
  292. MIXERCONTROL_CT_CLASS_SWITCH = 0x20000000
  293. MIXERCONTROL_CT_CLASS_NUMBER = 0x30000000
  294. MIXERCONTROL_CT_CLASS_SLIDER = 0x40000000
  295. MIXERCONTROL_CT_CLASS_FADER = 0x50000000
  296. MIXERCONTROL_CT_CLASS_TIME = 0x60000000
  297. MIXERCONTROL_CT_CLASS_LIST = 0x70000000
  298. MIXERCONTROL_CT_SUBCLASS_MASK = 0x0F000000
  299. MIXERCONTROL_CT_SC_SWITCH_BOOLEAN = 0x00000000
  300. MIXERCONTROL_CT_SC_SWITCH_BUTTON = 0x01000000
  301. MIXERCONTROL_CT_SC_METER_POLLED = 0x00000000
  302. MIXERCONTROL_CT_SC_TIME_MICROSECS = 0x00000000
  303. MIXERCONTROL_CT_SC_TIME_MILLISECS = 0x01000000
  304. MIXERCONTROL_CT_SC_LIST_SINGLE = 0x00000000
  305. MIXERCONTROL_CT_SC_LIST_MULTIPLE = 0x01000000
  306. MIXERCONTROL_CT_UNITS_MASK = 0x00FF0000
  307. MIXERCONTROL_CT_UNITS_CUSTOM = 0x00000000
  308. MIXERCONTROL_CT_UNITS_BOOLEAN = 0x00010000
  309. MIXERCONTROL_CT_UNITS_SIGNED = 0x00020000
  310. MIXERCONTROL_CT_UNITS_UNSIGNED = 0x00030000
  311. MIXERCONTROL_CT_UNITS_DECIBELS = 0x00040000
  312. MIXERCONTROL_CT_UNITS_PERCENT = 0x00050000
  313. MIXERCONTROL_CONTROLTYPE_CUSTOM = (MIXERCONTROL_CT_CLASS_CUSTOM | MIXERCONTROL_CT_UNITS_CUSTOM)
  314. MIXERCONTROL_CONTROLTYPE_BOOLEANMETER = (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_BOOLEAN)
  315. MIXERCONTROL_CONTROLTYPE_SIGNEDMETER = (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_SIGNED)
  316. MIXERCONTROL_CONTROLTYPE_PEAKMETER = (MIXERCONTROL_CONTROLTYPE_SIGNEDMETER + 1)
  317. MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER = (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_UNSIGNED)
  318. MIXERCONTROL_CONTROLTYPE_BOOLEAN = (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN | MIXERCONTROL_CT_UNITS_BOOLEAN)
  319. MIXERCONTROL_CONTROLTYPE_ONOFF = (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1)
  320. MIXERCONTROL_CONTROLTYPE_MUTE = (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2)
  321. MIXERCONTROL_CONTROLTYPE_MONO = (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3)
  322. MIXERCONTROL_CONTROLTYPE_LOUDNESS = (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4)
  323. MIXERCONTROL_CONTROLTYPE_STEREOENH = (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5)
  324. MIXERCONTROL_CONTROLTYPE_BUTTON = (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BUTTON | MIXERCONTROL_CT_UNITS_BOOLEAN)
  325. MIXERCONTROL_CONTROLTYPE_DECIBELS = (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_DECIBELS)
  326. MIXERCONTROL_CONTROLTYPE_SIGNED = (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_SIGNED)
  327. MIXERCONTROL_CONTROLTYPE_UNSIGNED = (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_UNSIGNED)
  328. MIXERCONTROL_CONTROLTYPE_PERCENT = (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_PERCENT)
  329. MIXERCONTROL_CONTROLTYPE_SLIDER = (MIXERCONTROL_CT_CLASS_SLIDER | MIXERCONTROL_CT_UNITS_SIGNED)
  330. MIXERCONTROL_CONTROLTYPE_PAN = (MIXERCONTROL_CONTROLTYPE_SLIDER + 1)
  331. MIXERCONTROL_CONTROLTYPE_QSOUNDPAN = (MIXERCONTROL_CONTROLTYPE_SLIDER + 2)
  332. MIXERCONTROL_CONTROLTYPE_FADER = (MIXERCONTROL_CT_CLASS_FADER | MIXERCONTROL_CT_UNITS_UNSIGNED)
  333. MIXERCONTROL_CONTROLTYPE_VOLUME = (MIXERCONTROL_CONTROLTYPE_FADER + 1)
  334. MIXERCONTROL_CONTROLTYPE_BASS = (MIXERCONTROL_CONTROLTYPE_FADER + 2)
  335. MIXERCONTROL_CONTROLTYPE_TREBLE = (MIXERCONTROL_CONTROLTYPE_FADER + 3)
  336. MIXERCONTROL_CONTROLTYPE_EQUALIZER = (MIXERCONTROL_CONTROLTYPE_FADER + 4)
  337. MIXERCONTROL_CONTROLTYPE_SINGLESELECT = (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_SINGLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
  338. MIXERCONTROL_CONTROLTYPE_MUX = (MIXERCONTROL_CONTROLTYPE_SINGLESELECT + 1)
  339. MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT = (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_MULTIPLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
  340. MIXERCONTROL_CONTROLTYPE_MIXER = (MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT + 1)
  341. MIXERCONTROL_CONTROLTYPE_MICROTIME = (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MICROSECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
  342. MIXERCONTROL_CONTROLTYPE_MILLITIME = (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MILLISECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
  343. MIXER_GETLINECONTROLSF_ALL = 0x00000000
  344. MIXER_GETLINECONTROLSF_ONEBYID = 0x00000001
  345. MIXER_GETLINECONTROLSF_ONEBYTYPE = 0x00000002
  346. MIXER_GETLINECONTROLSF_QUERYMASK = 0x0000000F
  347. MIXER_GETCONTROLDETAILSF_VALUE = 0x00000000
  348. MIXER_GETCONTROLDETAILSF_LISTTEXT = 0x00000001
  349. MIXER_GETCONTROLDETAILSF_QUERYMASK = 0x0000000F
  350. MIXER_SETCONTROLDETAILSF_VALUE = 0x00000000
  351. MIXER_SETCONTROLDETAILSF_CUSTOM = 0x00000001
  352. MIXER_SETCONTROLDETAILSF_QUERYMASK = 0x0000000F
  353. TIMERR_NOERROR = (0)
  354. TIMERR_NOCANDO = (TIMERR_BASE+1)
  355. TIMERR_STRUCT = (TIMERR_BASE+33)
  356. TIME_ONESHOT = 0x0000
  357. TIME_PERIODIC = 0x0001
  358. TIME_CALLBACK_FUNCTION = 0x0000
  359. TIME_CALLBACK_EVENT_SET = 0x0010
  360. TIME_CALLBACK_EVENT_PULSE = 0x0020
  361. JOYERR_NOERROR = (0)
  362. JOYERR_PARMS = (JOYERR_BASE+5)
  363. JOYERR_NOCANDO = (JOYERR_BASE+6)
  364. JOYERR_UNPLUGGED = (JOYERR_BASE+7)
  365. JOY_BUTTON1 = 0x0001
  366. JOY_BUTTON2 = 0x0002
  367. JOY_BUTTON3 = 0x0004
  368. JOY_BUTTON4 = 0x0008
  369. JOY_BUTTON1CHG = 0x0100
  370. JOY_BUTTON2CHG = 0x0200
  371. JOY_BUTTON3CHG = 0x0400
  372. JOY_BUTTON4CHG = 0x0800
  373. JOY_BUTTON5 = 0x00000010
  374. JOY_BUTTON6 = 0x00000020
  375. JOY_BUTTON7 = 0x00000040
  376. JOY_BUTTON8 = 0x00000080
  377. JOY_BUTTON9 = 0x00000100
  378. JOY_BUTTON10 = 0x00000200
  379. JOY_BUTTON11 = 0x00000400
  380. JOY_BUTTON12 = 0x00000800
  381. JOY_BUTTON13 = 0x00001000
  382. JOY_BUTTON14 = 0x00002000
  383. JOY_BUTTON15 = 0x00004000
  384. JOY_BUTTON16 = 0x00008000
  385. JOY_BUTTON17 = 0x00010000
  386. JOY_BUTTON18 = 0x00020000
  387. JOY_BUTTON19 = 0x00040000
  388. JOY_BUTTON20 = 0x00080000
  389. JOY_BUTTON21 = 0x00100000
  390. JOY_BUTTON22 = 0x00200000
  391. JOY_BUTTON23 = 0x00400000
  392. JOY_BUTTON24 = 0x00800000
  393. JOY_BUTTON25 = 0x01000000
  394. JOY_BUTTON26 = 0x02000000
  395. JOY_BUTTON27 = 0x04000000
  396. JOY_BUTTON28 = 0x08000000
  397. JOY_BUTTON29 = 0x10000000
  398. JOY_BUTTON30 = 0x20000000
  399. JOY_BUTTON31 = 0x40000000
  400. JOY_BUTTON32 = -2147483648 # 0x80000000
  401. JOY_POVFORWARD = 0
  402. JOY_POVRIGHT = 9000
  403. JOY_POVBACKWARD = 18000
  404. JOY_POVLEFT = 27000
  405. JOY_RETURNX = 0x00000001
  406. JOY_RETURNY = 0x00000002
  407. JOY_RETURNZ = 0x00000004
  408. JOY_RETURNR = 0x00000008
  409. JOY_RETURNU = 0x00000010
  410. JOY_RETURNV = 0x00000020
  411. JOY_RETURNPOV = 0x00000040
  412. JOY_RETURNBUTTONS = 0x00000080
  413. JOY_RETURNRAWDATA = 0x00000100
  414. JOY_RETURNPOVCTS = 0x00000200
  415. JOY_RETURNCENTERED = 0x00000400
  416. JOY_USEDEADZONE = 0x00000800
  417. JOY_RETURNALL = (JOY_RETURNX | JOY_RETURNY | JOY_RETURNZ | \
  418. JOY_RETURNR | JOY_RETURNU | JOY_RETURNV | \
  419. JOY_RETURNPOV | JOY_RETURNBUTTONS)
  420. JOY_CAL_READALWAYS = 0x00010000
  421. JOY_CAL_READXYONLY = 0x00020000
  422. JOY_CAL_READ3 = 0x00040000
  423. JOY_CAL_READ4 = 0x00080000
  424. JOY_CAL_READXONLY = 0x00100000
  425. JOY_CAL_READYONLY = 0x00200000
  426. JOY_CAL_READ5 = 0x00400000
  427. JOY_CAL_READ6 = 0x00800000
  428. JOY_CAL_READZONLY = 0x01000000
  429. JOY_CAL_READRONLY = 0x02000000
  430. JOY_CAL_READUONLY = 0x04000000
  431. JOY_CAL_READVONLY = 0x08000000
  432. JOYSTICKID1 = 0
  433. JOYSTICKID2 = 1
  434. JOYCAPS_HASZ = 0x0001
  435. JOYCAPS_HASR = 0x0002
  436. JOYCAPS_HASU = 0x0004
  437. JOYCAPS_HASV = 0x0008
  438. JOYCAPS_HASPOV = 0x0010
  439. JOYCAPS_POV4DIR = 0x0020
  440. JOYCAPS_POVCTS = 0x0040
  441. MMIOERR_BASE = 256
  442. MMIOERR_FILENOTFOUND = (MMIOERR_BASE + 1)
  443. MMIOERR_OUTOFMEMORY = (MMIOERR_BASE + 2)
  444. MMIOERR_CANNOTOPEN = (MMIOERR_BASE + 3)
  445. MMIOERR_CANNOTCLOSE = (MMIOERR_BASE + 4)
  446. MMIOERR_CANNOTREAD = (MMIOERR_BASE + 5)
  447. MMIOERR_CANNOTWRITE = (MMIOERR_BASE + 6)
  448. MMIOERR_CANNOTSEEK = (MMIOERR_BASE + 7)
  449. MMIOERR_CANNOTEXPAND = (MMIOERR_BASE + 8)
  450. MMIOERR_CHUNKNOTFOUND = (MMIOERR_BASE + 9)
  451. MMIOERR_UNBUFFERED = (MMIOERR_BASE + 10)
  452. MMIOERR_PATHNOTFOUND = (MMIOERR_BASE + 11)
  453. MMIOERR_ACCESSDENIED = (MMIOERR_BASE + 12)
  454. MMIOERR_SHARINGVIOLATION = (MMIOERR_BASE + 13)
  455. MMIOERR_NETWORKERROR = (MMIOERR_BASE + 14)
  456. MMIOERR_TOOMANYOPENFILES = (MMIOERR_BASE + 15)
  457. MMIOERR_INVALIDFILE = (MMIOERR_BASE + 16)
  458. CFSEPCHAR = ord('+')
  459. MMIO_RWMODE = 0x00000003
  460. MMIO_SHAREMODE = 0x00000070
  461. MMIO_CREATE = 0x00001000
  462. MMIO_PARSE = 0x00000100
  463. MMIO_DELETE = 0x00000200
  464. MMIO_EXIST = 0x00004000
  465. MMIO_ALLOCBUF = 0x00010000
  466. MMIO_GETTEMP = 0x00020000
  467. MMIO_DIRTY = 0x10000000
  468. MMIO_READ = 0x00000000
  469. MMIO_WRITE = 0x00000001
  470. MMIO_READWRITE = 0x00000002
  471. MMIO_COMPAT = 0x00000000
  472. MMIO_EXCLUSIVE = 0x00000010
  473. MMIO_DENYWRITE = 0x00000020
  474. MMIO_DENYREAD = 0x00000030
  475. MMIO_DENYNONE = 0x00000040
  476. MMIO_FHOPEN = 0x0010
  477. MMIO_EMPTYBUF = 0x0010
  478. MMIO_TOUPPER = 0x0010
  479. MMIO_INSTALLPROC = 0x00010000
  480. MMIO_GLOBALPROC = 0x10000000
  481. MMIO_REMOVEPROC = 0x00020000
  482. MMIO_UNICODEPROC = 0x01000000
  483. MMIO_FINDPROC = 0x00040000
  484. MMIO_FINDCHUNK = 0x0010
  485. MMIO_FINDRIFF = 0x0020
  486. MMIO_FINDLIST = 0x0040
  487. MMIO_CREATERIFF = 0x0020
  488. MMIO_CREATELIST = 0x0040
  489. MMIOM_READ = MMIO_READ
  490. MMIOM_WRITE = MMIO_WRITE
  491. MMIOM_SEEK = 2
  492. MMIOM_OPEN = 3
  493. MMIOM_CLOSE = 4
  494. MMIOM_WRITEFLUSH = 5
  495. MMIOM_RENAME = 6
  496. MMIOM_USER = 0x8000
  497. SEEK_SET = 0
  498. SEEK_CUR = 1
  499. SEEK_END = 2
  500. MMIO_DEFAULTBUFFER = 8192
  501. MCIERR_INVALID_DEVICE_ID = (MCIERR_BASE + 1)
  502. MCIERR_UNRECOGNIZED_KEYWORD = (MCIERR_BASE + 3)
  503. MCIERR_UNRECOGNIZED_COMMAND = (MCIERR_BASE + 5)
  504. MCIERR_HARDWARE = (MCIERR_BASE + 6)
  505. MCIERR_INVALID_DEVICE_NAME = (MCIERR_BASE + 7)
  506. MCIERR_OUT_OF_MEMORY = (MCIERR_BASE + 8)
  507. MCIERR_DEVICE_OPEN = (MCIERR_BASE + 9)
  508. MCIERR_CANNOT_LOAD_DRIVER = (MCIERR_BASE + 10)
  509. MCIERR_MISSING_COMMAND_STRING = (MCIERR_BASE + 11)
  510. MCIERR_PARAM_OVERFLOW = (MCIERR_BASE + 12)
  511. MCIERR_MISSING_STRING_ARGUMENT = (MCIERR_BASE + 13)
  512. MCIERR_BAD_INTEGER = (MCIERR_BASE + 14)
  513. MCIERR_PARSER_INTERNAL = (MCIERR_BASE + 15)
  514. MCIERR_DRIVER_INTERNAL = (MCIERR_BASE + 16)
  515. MCIERR_MISSING_PARAMETER = (MCIERR_BASE + 17)
  516. MCIERR_UNSUPPORTED_FUNCTION = (MCIERR_BASE + 18)
  517. MCIERR_FILE_NOT_FOUND = (MCIERR_BASE + 19)
  518. MCIERR_DEVICE_NOT_READY = (MCIERR_BASE + 20)
  519. MCIERR_INTERNAL = (MCIERR_BASE + 21)
  520. MCIERR_DRIVER = (MCIERR_BASE + 22)
  521. MCIERR_CANNOT_USE_ALL = (MCIERR_BASE + 23)
  522. MCIERR_MULTIPLE = (MCIERR_BASE + 24)
  523. MCIERR_EXTENSION_NOT_FOUND = (MCIERR_BASE + 25)
  524. MCIERR_OUTOFRANGE = (MCIERR_BASE + 26)
  525. MCIERR_FLAGS_NOT_COMPATIBLE = (MCIERR_BASE + 28)
  526. MCIERR_FILE_NOT_SAVED = (MCIERR_BASE + 30)
  527. MCIERR_DEVICE_TYPE_REQUIRED = (MCIERR_BASE + 31)
  528. MCIERR_DEVICE_LOCKED = (MCIERR_BASE + 32)
  529. MCIERR_DUPLICATE_ALIAS = (MCIERR_BASE + 33)
  530. MCIERR_BAD_CONSTANT = (MCIERR_BASE + 34)
  531. MCIERR_MUST_USE_SHAREABLE = (MCIERR_BASE + 35)
  532. MCIERR_MISSING_DEVICE_NAME = (MCIERR_BASE + 36)
  533. MCIERR_BAD_TIME_FORMAT = (MCIERR_BASE + 37)
  534. MCIERR_NO_CLOSING_QUOTE = (MCIERR_BASE + 38)
  535. MCIERR_DUPLICATE_FLAGS = (MCIERR_BASE + 39)
  536. MCIERR_INVALID_FILE = (MCIERR_BASE + 40)
  537. MCIERR_NULL_PARAMETER_BLOCK = (MCIERR_BASE + 41)
  538. MCIERR_UNNAMED_RESOURCE = (MCIERR_BASE + 42)
  539. MCIERR_NEW_REQUIRES_ALIAS = (MCIERR_BASE + 43)
  540. MCIERR_NOTIFY_ON_AUTO_OPEN = (MCIERR_BASE + 44)
  541. MCIERR_NO_ELEMENT_ALLOWED = (MCIERR_BASE + 45)
  542. MCIERR_NONAPPLICABLE_FUNCTION = (MCIERR_BASE + 46)
  543. MCIERR_ILLEGAL_FOR_AUTO_OPEN = (MCIERR_BASE + 47)
  544. MCIERR_FILENAME_REQUIRED = (MCIERR_BASE + 48)
  545. MCIERR_EXTRA_CHARACTERS = (MCIERR_BASE + 49)
  546. MCIERR_DEVICE_NOT_INSTALLED = (MCIERR_BASE + 50)
  547. MCIERR_GET_CD = (MCIERR_BASE + 51)
  548. MCIERR_SET_CD = (MCIERR_BASE + 52)
  549. MCIERR_SET_DRIVE = (MCIERR_BASE + 53)
  550. MCIERR_DEVICE_LENGTH = (MCIERR_BASE + 54)
  551. MCIERR_DEVICE_ORD_LENGTH = (MCIERR_BASE + 55)
  552. MCIERR_NO_INTEGER = (MCIERR_BASE + 56)
  553. MCIERR_WAVE_OUTPUTSINUSE = (MCIERR_BASE + 64)
  554. MCIERR_WAVE_SETOUTPUTINUSE = (MCIERR_BASE + 65)
  555. MCIERR_WAVE_INPUTSINUSE = (MCIERR_BASE + 66)
  556. MCIERR_WAVE_SETINPUTINUSE = (MCIERR_BASE + 67)
  557. MCIERR_WAVE_OUTPUTUNSPECIFIED = (MCIERR_BASE + 68)
  558. MCIERR_WAVE_INPUTUNSPECIFIED = (MCIERR_BASE + 69)
  559. MCIERR_WAVE_OUTPUTSUNSUITABLE = (MCIERR_BASE + 70)
  560. MCIERR_WAVE_SETOUTPUTUNSUITABLE = (MCIERR_BASE + 71)
  561. MCIERR_WAVE_INPUTSUNSUITABLE = (MCIERR_BASE + 72)
  562. MCIERR_WAVE_SETINPUTUNSUITABLE = (MCIERR_BASE + 73)
  563. MCIERR_SEQ_DIV_INCOMPATIBLE = (MCIERR_BASE + 80)
  564. MCIERR_SEQ_PORT_INUSE = (MCIERR_BASE + 81)
  565. MCIERR_SEQ_PORT_NONEXISTENT = (MCIERR_BASE + 82)
  566. MCIERR_SEQ_PORT_MAPNODEVICE = (MCIERR_BASE + 83)
  567. MCIERR_SEQ_PORT_MISCERROR = (MCIERR_BASE + 84)
  568. MCIERR_SEQ_TIMER = (MCIERR_BASE + 85)
  569. MCIERR_SEQ_PORTUNSPECIFIED = (MCIERR_BASE + 86)
  570. MCIERR_SEQ_NOMIDIPRESENT = (MCIERR_BASE + 87)
  571. MCIERR_NO_WINDOW = (MCIERR_BASE + 90)
  572. MCIERR_CREATEWINDOW = (MCIERR_BASE + 91)
  573. MCIERR_FILE_READ = (MCIERR_BASE + 92)
  574. MCIERR_FILE_WRITE = (MCIERR_BASE + 93)
  575. MCIERR_NO_IDENTITY = (MCIERR_BASE + 94)
  576. MCIERR_CUSTOM_DRIVER_BASE = (MCIERR_BASE + 256)
  577. MCI_FIRST = DRV_MCI_FIRST
  578. MCI_OPEN = 0x0803
  579. MCI_CLOSE = 0x0804
  580. MCI_ESCAPE = 0x0805
  581. MCI_PLAY = 0x0806
  582. MCI_SEEK = 0x0807
  583. MCI_STOP = 0x0808
  584. MCI_PAUSE = 0x0809
  585. MCI_INFO = 0x080A
  586. MCI_GETDEVCAPS = 0x080B
  587. MCI_SPIN = 0x080C
  588. MCI_SET = 0x080D
  589. MCI_STEP = 0x080E
  590. MCI_RECORD = 0x080F
  591. MCI_SYSINFO = 0x0810
  592. MCI_BREAK = 0x0811
  593. MCI_SAVE = 0x0813
  594. MCI_STATUS = 0x0814
  595. MCI_CUE = 0x0830
  596. MCI_REALIZE = 0x0840
  597. MCI_WINDOW = 0x0841
  598. MCI_PUT = 0x0842
  599. MCI_WHERE = 0x0843
  600. MCI_FREEZE = 0x0844
  601. MCI_UNFREEZE = 0x0845
  602. MCI_LOAD = 0x0850
  603. MCI_CUT = 0x0851
  604. MCI_COPY = 0x0852
  605. MCI_PASTE = 0x0853
  606. MCI_UPDATE = 0x0854
  607. MCI_RESUME = 0x0855
  608. MCI_DELETE = 0x0856
  609. MCI_USER_MESSAGES = (DRV_MCI_FIRST + 0x400)
  610. MCI_LAST = 0x0FFF
  611. MCI_DEVTYPE_VCR = 513
  612. MCI_DEVTYPE_VIDEODISC = 514
  613. MCI_DEVTYPE_OVERLAY = 515
  614. MCI_DEVTYPE_CD_AUDIO = 516
  615. MCI_DEVTYPE_DAT = 517
  616. MCI_DEVTYPE_SCANNER = 518
  617. MCI_DEVTYPE_ANIMATION = 519
  618. MCI_DEVTYPE_DIGITAL_VIDEO = 520
  619. MCI_DEVTYPE_OTHER = 521
  620. MCI_DEVTYPE_WAVEFORM_AUDIO = 522
  621. MCI_DEVTYPE_SEQUENCER = 523
  622. MCI_DEVTYPE_FIRST = MCI_DEVTYPE_VCR
  623. MCI_DEVTYPE_LAST = MCI_DEVTYPE_SEQUENCER
  624. MCI_DEVTYPE_FIRST_USER = 0x1000
  625. MCI_MODE_NOT_READY = (MCI_STRING_OFFSET + 12)
  626. MCI_MODE_STOP = (MCI_STRING_OFFSET + 13)
  627. MCI_MODE_PLAY = (MCI_STRING_OFFSET + 14)
  628. MCI_MODE_RECORD = (MCI_STRING_OFFSET + 15)
  629. MCI_MODE_SEEK = (MCI_STRING_OFFSET + 16)
  630. MCI_MODE_PAUSE = (MCI_STRING_OFFSET + 17)
  631. MCI_MODE_OPEN = (MCI_STRING_OFFSET + 18)
  632. MCI_FORMAT_MILLISECONDS = 0
  633. MCI_FORMAT_HMS = 1
  634. MCI_FORMAT_MSF = 2
  635. MCI_FORMAT_FRAMES = 3
  636. MCI_FORMAT_SMPTE_24 = 4
  637. MCI_FORMAT_SMPTE_25 = 5
  638. MCI_FORMAT_SMPTE_30 = 6
  639. MCI_FORMAT_SMPTE_30DROP = 7
  640. MCI_FORMAT_BYTES = 8
  641. MCI_FORMAT_SAMPLES = 9
  642. MCI_FORMAT_TMSF = 10
  643. def MCI_MSF_MINUTE(msf): return ((BYTE)(msf))
  644. def MCI_MSF_SECOND(msf): return ((BYTE)(((WORD)(msf)) >> 8))
  645. def MCI_MSF_FRAME(msf): return ((BYTE)((msf)>>16))
  646. def MCI_TMSF_TRACK(tmsf): return ((BYTE)(tmsf))
  647. def MCI_TMSF_MINUTE(tmsf): return ((BYTE)(((WORD)(tmsf)) >> 8))
  648. def MCI_TMSF_SECOND(tmsf): return ((BYTE)((tmsf)>>16))
  649. def MCI_TMSF_FRAME(tmsf): return ((BYTE)((tmsf)>>24))
  650. def MCI_HMS_HOUR(hms): return ((BYTE)(hms))
  651. def MCI_HMS_MINUTE(hms): return ((BYTE)(((WORD)(hms)) >> 8))
  652. def MCI_HMS_SECOND(hms): return ((BYTE)((hms)>>16))
  653. MCI_NOTIFY_SUCCESSFUL = 0x0001
  654. MCI_NOTIFY_SUPERSEDED = 0x0002
  655. MCI_NOTIFY_ABORTED = 0x0004
  656. MCI_NOTIFY_FAILURE = 0x0008
  657. MCI_NOTIFY = 0x00000001
  658. MCI_WAIT = 0x00000002
  659. MCI_FROM = 0x00000004
  660. MCI_TO = 0x00000008
  661. MCI_TRACK = 0x00000010
  662. MCI_OPEN_SHAREABLE = 0x00000100
  663. MCI_OPEN_ELEMENT = 0x00000200
  664. MCI_OPEN_ALIAS = 0x00000400
  665. MCI_OPEN_ELEMENT_ID = 0x00000800
  666. MCI_OPEN_TYPE_ID = 0x00001000
  667. MCI_OPEN_TYPE = 0x00002000
  668. MCI_SEEK_TO_START = 0x00000100
  669. MCI_SEEK_TO_END = 0x00000200
  670. MCI_STATUS_ITEM = 0x00000100
  671. MCI_STATUS_START = 0x00000200
  672. MCI_STATUS_LENGTH = 0x00000001
  673. MCI_STATUS_POSITION = 0x00000002
  674. MCI_STATUS_NUMBER_OF_TRACKS = 0x00000003
  675. MCI_STATUS_MODE = 0x00000004
  676. MCI_STATUS_MEDIA_PRESENT = 0x00000005
  677. MCI_STATUS_TIME_FORMAT = 0x00000006
  678. MCI_STATUS_READY = 0x00000007
  679. MCI_STATUS_CURRENT_TRACK = 0x00000008
  680. MCI_INFO_PRODUCT = 0x00000100
  681. MCI_INFO_FILE = 0x00000200
  682. MCI_INFO_MEDIA_UPC = 0x00000400
  683. MCI_INFO_MEDIA_IDENTITY = 0x00000800
  684. MCI_INFO_NAME = 0x00001000
  685. MCI_INFO_COPYRIGHT = 0x00002000
  686. MCI_GETDEVCAPS_ITEM = 0x00000100
  687. MCI_GETDEVCAPS_CAN_RECORD = 0x00000001
  688. MCI_GETDEVCAPS_HAS_AUDIO = 0x00000002
  689. MCI_GETDEVCAPS_HAS_VIDEO = 0x00000003
  690. MCI_GETDEVCAPS_DEVICE_TYPE = 0x00000004
  691. MCI_GETDEVCAPS_USES_FILES = 0x00000005
  692. MCI_GETDEVCAPS_COMPOUND_DEVICE = 0x00000006
  693. MCI_GETDEVCAPS_CAN_EJECT = 0x00000007
  694. MCI_GETDEVCAPS_CAN_PLAY = 0x00000008
  695. MCI_GETDEVCAPS_CAN_SAVE = 0x00000009
  696. MCI_SYSINFO_QUANTITY = 0x00000100
  697. MCI_SYSINFO_OPEN = 0x00000200
  698. MCI_SYSINFO_NAME = 0x00000400
  699. MCI_SYSINFO_INSTALLNAME = 0x00000800
  700. MCI_SET_DOOR_OPEN = 0x00000100
  701. MCI_SET_DOOR_CLOSED = 0x00000200
  702. MCI_SET_TIME_FORMAT = 0x00000400
  703. MCI_SET_AUDIO = 0x00000800
  704. MCI_SET_VIDEO = 0x00001000
  705. MCI_SET_ON = 0x00002000
  706. MCI_SET_OFF = 0x00004000
  707. MCI_SET_AUDIO_ALL = 0x00000000
  708. MCI_SET_AUDIO_LEFT = 0x00000001
  709. MCI_SET_AUDIO_RIGHT = 0x00000002
  710. MCI_BREAK_KEY = 0x00000100
  711. MCI_BREAK_HWND = 0x00000200
  712. MCI_BREAK_OFF = 0x00000400
  713. MCI_RECORD_INSERT = 0x00000100
  714. MCI_RECORD_OVERWRITE = 0x00000200
  715. MCI_SAVE_FILE = 0x00000100
  716. MCI_LOAD_FILE = 0x00000100
  717. MCI_VD_MODE_PARK = (MCI_VD_OFFSET + 1)
  718. MCI_VD_MEDIA_CLV = (MCI_VD_OFFSET + 2)
  719. MCI_VD_MEDIA_CAV = (MCI_VD_OFFSET + 3)
  720. MCI_VD_MEDIA_OTHER = (MCI_VD_OFFSET + 4)
  721. MCI_VD_FORMAT_TRACK = 0x4001
  722. MCI_VD_PLAY_REVERSE = 0x00010000
  723. MCI_VD_PLAY_FAST = 0x00020000
  724. MCI_VD_PLAY_SPEED = 0x00040000
  725. MCI_VD_PLAY_SCAN = 0x00080000
  726. MCI_VD_PLAY_SLOW = 0x00100000
  727. MCI_VD_SEEK_REVERSE = 0x00010000
  728. MCI_VD_STATUS_SPEED = 0x00004002
  729. MCI_VD_STATUS_FORWARD = 0x00004003
  730. MCI_VD_STATUS_MEDIA_TYPE = 0x00004004
  731. MCI_VD_STATUS_SIDE = 0x00004005
  732. MCI_VD_STATUS_DISC_SIZE = 0x00004006
  733. MCI_VD_GETDEVCAPS_CLV = 0x00010000
  734. MCI_VD_GETDEVCAPS_CAV = 0x00020000
  735. MCI_VD_SPIN_UP = 0x00010000
  736. MCI_VD_SPIN_DOWN = 0x00020000
  737. MCI_VD_GETDEVCAPS_CAN_REVERSE = 0x00004002
  738. MCI_VD_GETDEVCAPS_FAST_RATE = 0x00004003
  739. MCI_VD_GETDEVCAPS_SLOW_RATE = 0x00004004
  740. MCI_VD_GETDEVCAPS_NORMAL_RATE = 0x00004005
  741. MCI_VD_STEP_FRAMES = 0x00010000
  742. MCI_VD_STEP_REVERSE = 0x00020000
  743. MCI_VD_ESCAPE_STRING = 0x00000100
  744. MCI_CDA_STATUS_TYPE_TRACK = 0x00004001
  745. MCI_CDA_TRACK_AUDIO = (MCI_CD_OFFSET + 0)
  746. MCI_CDA_TRACK_OTHER = (MCI_CD_OFFSET + 1)
  747. MCI_WAVE_PCM = (MCI_WAVE_OFFSET + 0)
  748. MCI_WAVE_MAPPER = (MCI_WAVE_OFFSET + 1)
  749. MCI_WAVE_OPEN_BUFFER = 0x00010000
  750. MCI_WAVE_SET_FORMATTAG = 0x00010000
  751. MCI_WAVE_SET_CHANNELS = 0x00020000
  752. MCI_WAVE_SET_SAMPLESPERSEC = 0x00040000
  753. MCI_WAVE_SET_AVGBYTESPERSEC = 0x00080000
  754. MCI_WAVE_SET_BLOCKALIGN = 0x00100000
  755. MCI_WAVE_SET_BITSPERSAMPLE = 0x00200000
  756. MCI_WAVE_INPUT = 0x00400000
  757. MCI_WAVE_OUTPUT = 0x00800000
  758. MCI_WAVE_STATUS_FORMATTAG = 0x00004001
  759. MCI_WAVE_STATUS_CHANNELS = 0x00004002
  760. MCI_WAVE_STATUS_SAMPLESPERSEC = 0x00004003
  761. MCI_WAVE_STATUS_AVGBYTESPERSEC = 0x00004004
  762. MCI_WAVE_STATUS_BLOCKALIGN = 0x00004005
  763. MCI_WAVE_STATUS_BITSPERSAMPLE = 0x00004006
  764. MCI_WAVE_STATUS_LEVEL = 0x00004007
  765. MCI_WAVE_SET_ANYINPUT = 0x04000000
  766. MCI_WAVE_SET_ANYOUTPUT = 0x08000000
  767. MCI_WAVE_GETDEVCAPS_INPUTS = 0x00004001
  768. MCI_WAVE_GETDEVCAPS_OUTPUTS = 0x00004002
  769. MCI_SEQ_DIV_PPQN = (0 + MCI_SEQ_OFFSET)
  770. MCI_SEQ_DIV_SMPTE_24 = (1 + MCI_SEQ_OFFSET)
  771. MCI_SEQ_DIV_SMPTE_25 = (2 + MCI_SEQ_OFFSET)
  772. MCI_SEQ_DIV_SMPTE_30DROP = (3 + MCI_SEQ_OFFSET)
  773. MCI_SEQ_DIV_SMPTE_30 = (4 + MCI_SEQ_OFFSET)
  774. MCI_SEQ_FORMAT_SONGPTR = 0x4001
  775. MCI_SEQ_FILE = 0x4002
  776. MCI_SEQ_MIDI = 0x4003
  777. MCI_SEQ_SMPTE = 0x4004
  778. MCI_SEQ_NONE = 65533
  779. MCI_SEQ_MAPPER = 65535
  780. MCI_SEQ_STATUS_TEMPO = 0x00004002
  781. MCI_SEQ_STATUS_PORT = 0x00004003
  782. MCI_SEQ_STATUS_SLAVE = 0x00004007
  783. MCI_SEQ_STATUS_MASTER = 0x00004008
  784. MCI_SEQ_STATUS_OFFSET = 0x00004009
  785. MCI_SEQ_STATUS_DIVTYPE = 0x0000400A
  786. MCI_SEQ_STATUS_NAME = 0x0000400B
  787. MCI_SEQ_STATUS_COPYRIGHT = 0x0000400C
  788. MCI_SEQ_SET_TEMPO = 0x00010000
  789. MCI_SEQ_SET_PORT = 0x00020000
  790. MCI_SEQ_SET_SLAVE = 0x00040000
  791. MCI_SEQ_SET_MASTER = 0x00080000
  792. MCI_SEQ_SET_OFFSET = 0x01000000
  793. MCI_ANIM_OPEN_WS = 0x00010000
  794. MCI_ANIM_OPEN_PARENT = 0x00020000
  795. MCI_ANIM_OPEN_NOSTATIC = 0x00040000
  796. MCI_ANIM_PLAY_SPEED = 0x00010000
  797. MCI_ANIM_PLAY_REVERSE = 0x00020000
  798. MCI_ANIM_PLAY_FAST = 0x00040000
  799. MCI_ANIM_PLAY_SLOW = 0x00080000
  800. MCI_ANIM_PLAY_SCAN = 0x00100000
  801. MCI_ANIM_STEP_REVERSE = 0x00010000
  802. MCI_ANIM_STEP_FRAMES = 0x00020000
  803. MCI_ANIM_STATUS_SPEED = 0x00004001
  804. MCI_ANIM_STATUS_FORWARD = 0x00004002
  805. MCI_ANIM_STATUS_HWND = 0x00004003
  806. MCI_ANIM_STATUS_HPAL = 0x00004004
  807. MCI_ANIM_STATUS_STRETCH = 0x00004005
  808. MCI_ANIM_INFO_TEXT = 0x00010000
  809. MCI_ANIM_GETDEVCAPS_CAN_REVERSE = 0x00004001
  810. MCI_ANIM_GETDEVCAPS_FAST_RATE = 0x00004002
  811. MCI_ANIM_GETDEVCAPS_SLOW_RATE = 0x00004003
  812. MCI_ANIM_GETDEVCAPS_NORMAL_RATE = 0x00004004
  813. MCI_ANIM_GETDEVCAPS_PALETTES = 0x00004006
  814. MCI_ANIM_GETDEVCAPS_CAN_STRETCH = 0x00004007
  815. MCI_ANIM_GETDEVCAPS_MAX_WINDOWS = 0x00004008
  816. MCI_ANIM_REALIZE_NORM = 0x00010000
  817. MCI_ANIM_REALIZE_BKGD = 0x00020000
  818. MCI_ANIM_WINDOW_HWND = 0x00010000
  819. MCI_ANIM_WINDOW_STATE = 0x00040000
  820. MCI_ANIM_WINDOW_TEXT = 0x00080000
  821. MCI_ANIM_WINDOW_ENABLE_STRETCH = 0x00100000
  822. MCI_ANIM_WINDOW_DISABLE_STRETCH = 0x00200000
  823. MCI_ANIM_WINDOW_DEFAULT = 0x00000000
  824. MCI_ANIM_RECT = 0x00010000
  825. MCI_ANIM_PUT_SOURCE = 0x00020000
  826. MCI_ANIM_PUT_DESTINATION = 0x00040000
  827. MCI_ANIM_WHERE_SOURCE = 0x00020000
  828. MCI_ANIM_WHERE_DESTINATION = 0x00040000
  829. MCI_ANIM_UPDATE_HDC = 0x00020000
  830. MCI_OVLY_OPEN_WS = 0x00010000
  831. MCI_OVLY_OPEN_PARENT = 0x00020000
  832. MCI_OVLY_STATUS_HWND = 0x00004001
  833. MCI_OVLY_STATUS_STRETCH = 0x00004002
  834. MCI_OVLY_INFO_TEXT = 0x00010000
  835. MCI_OVLY_GETDEVCAPS_CAN_STRETCH = 0x00004001
  836. MCI_OVLY_GETDEVCAPS_CAN_FREEZE = 0x00004002
  837. MCI_OVLY_GETDEVCAPS_MAX_WINDOWS = 0x00004003
  838. MCI_OVLY_WINDOW_HWND = 0x00010000
  839. MCI_OVLY_WINDOW_STATE = 0x00040000
  840. MCI_OVLY_WINDOW_TEXT = 0x00080000
  841. MCI_OVLY_WINDOW_ENABLE_STRETCH = 0x00100000
  842. MCI_OVLY_WINDOW_DISABLE_STRETCH = 0x00200000
  843. MCI_OVLY_WINDOW_DEFAULT = 0x00000000
  844. MCI_OVLY_RECT = 0x00010000
  845. MCI_OVLY_PUT_SOURCE = 0x00020000
  846. MCI_OVLY_PUT_DESTINATION = 0x00040000
  847. MCI_OVLY_PUT_FRAME = 0x00080000
  848. MCI_OVLY_PUT_VIDEO = 0x00100000
  849. MCI_OVLY_WHERE_SOURCE = 0x00020000
  850. MCI_OVLY_WHERE_DESTINATION = 0x00040000
  851. MCI_OVLY_WHERE_FRAME = 0x00080000
  852. MCI_OVLY_WHERE_VIDEO = 0x00100000
  853. SELECTDIB = 41
  854. def DIBINDEX(n): return MAKELONG((n),0x10FF)