Platforms to show: All Mac Windows Linux Cross-Platform

Back to WindowsMCIMBS class.

WindowsMCIMBS.Command as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS Audio Plugin ❌ No ✅ Yes ❌ No ❌ No All
Here you can store the next Command for the MCI.
Example
dim v as new WindowsMCIMBS

v.command="pause cdaudio" // pauses the CD
v.run

(Read and Write property)

WindowsMCIMBS.Errorcode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS Audio Plugin ❌ No ✅ Yes ❌ No ❌ No All
The error code for the last error.
Example
dim v as new WindowsMCIMBS

msgbox str(v.errorcode)+" "+v.errorstring

This property can be set to make a list of possible error messages like in the example "List MCI Errormessages".
(Read and Write property)

WindowsMCIMBS.Errorstring as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS Audio Plugin ❌ No ✅ Yes ❌ No ❌ No All
The error description for the last error.
Example
dim v as new WindowsMCIMBS

msgbox str(v.errorcode)+" "+v.errorstring

Here is a list of some error messages:

0The specified command was carried out.
1Undefined external error.
2A device ID has been used that is out of range for your system.
3The driver was not enabled.
4The specified device is already in use. Wait until it is free, and then try again.
5The specified device handle is invalid.
6There is no driver installed on your system.
7There is not enough memory available for this task. Quit one or more applications to increase available memory, and then try again.
8This function is not supported. Use the Capabilities function to determine which functions and messages the driver supports.
9An error number was specified that is not defined in the system.
10An invalid flag was passed to a system function.
11An invalid parameter was passed to a system function.
12Handle being used simultaneously on another thread (eg callback).
13Specified alias not found in WIN.INI.
14The registry database is corrupt.
15The specified registry key was not found.
16The registry could not be opened or could not be read.
17The registry could not be written to.
18The specified registry key could not be deleted.
19The specified registry key value could not be found.
20The driver did not generate a valid OPEN callback.
32The specified format is not supported or cannot be translated. Use the Capabilities function to determine the supported formats.
33Cannot perform this operation while media data is still playing. Reset the device, or wait until the data is finished playing.
34The wave header was not prepared. Use the Prepare function to prepare the header, and then try again.
35Cannot open the device without using the WAVE_ALLOWSYNC flag. Use the flag, and then try again.
64The MIDI header was not prepared. Use the Prepare function to prepare the header, and then try again.
65Cannot perform this operation while media data is still playing. Reset the device, or wait until the data is finished playing.
66A MIDI map was not found. There may be a problem with the driver, or the MIDIMAP.CFG file may be corrupt or missing.
67The port is transmitting data to the device. Wait until the data has been transmitted, and then try again.
68The current MIDI Mapper setup refers to a MIDI device that is not installed on the system. Use MIDI Mapper to edit the setup.
69The current MIDI setup is damaged. Copy the original MIDIMAP.CFG file to the Windows SYSTEM directory, and then try again.
70A MIDI call was made which is invalid with the current open mode. Reopen the device with the correct mode.
71Driver condition - do not callback this input event
257Invalid MCI device ID. Use the ID returned when opening the MCI device.
259The driver cannot recognize the specified command parameter.
261The driver cannot recognize the specified command.
262There is a problem with your media device. Make sure it is working correctly or contact the device manufacturer.
263The specified device is not open or is not recognized by MCI.
264Not enough memory available for this task. Quit one or more applications to increase available memory, and then try again.
265The device name is already being used as an alias by this application. Use a unique alias.
266Unknown problem while loading the specified device driver.
267No command was specified.
268The output string was too large to fit in the return buffer. Increase the size of the buffer.
269The specified command requires a character-string parameter. Please provide one.
270The specified integer is invalid for this command.
271The device driver returned an invalid return type. Check with the device manufacturer about obtaining a new driver.
272There is a problem with the device driver. Check with the device manufacturer about obtaining a new driver.
273The specified command requires a parameter. Please supply one.
274The MCI device you are using does not support the specified command.
275Cannot find the specified file. Make sure the path and filename are correct.
276The device driver is not ready.
277A problem occurred in initializing MCI.
279Cannot use 'all' as the device name with the specified command.
280Errors occurred in more than one device. Specify each command and device separately to determine which devices caused the errors.
281Cannot determine the device type from the given filename extension.
282The specified parameter is out of range for the specified command.
284The specified parameters cannot be used together.
286Cannot save the specified file. Make sure you have enough disk space or are still connected to the network.
287Cannot find the specified device. Make sure it is installed or that the device name is spelled correctly.
288The specified device is now being closed. Wait a few seconds, and then try again.
289The specified alias is already being used in this application. Use a unique alias.
290The specified parameter is invalid for this command.
291The device driver is already in use. To share it, use the 'shareable' parameter with each 'open' command.
292The specified command requires an alias, file, driver, or device name. Please supply one.
293The specified value for the time format is invalid. Refer to the MCI documentation for valid formats.
294A closing double-quotation mark is missing from the parameter value. Please supply one.
295A parameter or value was specified twice. Only specify it once.
296The specified file cannot be played on the specified MCI device. The file may be corrupt, not in the correct format, or no file handler available for this format.
297A null parameter block was passed to MCI.
298Cannot save an unnamed file. Supply a filename.
299You must specify an alias when using the 'new' parameter.
300Cannot use the 'notify' flag with auto-opened devices.
301Cannot use a filename with the specified device.
302Cannot carry out the commands in the order specified. Correct the command sequence, and then try again.
303Cannot carry out the specified command on an auto-opened device. Wait until the device is closed, and then try again.
304The filename is invalid. Make sure the filename is not longer than 8 characters, followed by a period and an extension.
305Cannot specify extra characters after a string enclosed in quotation marks.
306The specified device is not installed on the system. Use the Add/Remove Hardware Wizard in Control Panel to install the device.
307Cannot access the specified file or MCI device. Try changing directories or restarting your computer.
308Cannot access the specified file or MCI device because the application cannot change directories.
309Cannot access specified file or MCI device because the application cannot change drives.
310Specify a device or driver name that is less than 79 characters.
311Specify a device or driver name that is less than 69 characters.
312The specified command requires an integer parameter. Please provide one.
320All wave devices that can play files in the current format are in use. Wait until a wave device is free, and then try again.
321Cannot set the current wave device for play back because it is in use. Wait until the device is free, and then try again.
322All wave devices that can record files in the current format are in use. Wait until a wave device is free, and then try again.
323Cannot set the current wave device for recording because it is in use. Wait until the device is free, and then try again.
324Any compatible waveform playback device may be used.
325Any compatible waveform recording device may be used.
326No wave device that can play files in the current format is installed. Use the Add/Remove Hardware Wizard in Control Panel to install the wave device.
327The device you are trying to play to cannot recognize the current file format.
328No wave device that can record files in the current format is installed. Use the Add/Remove Hardware Wizard in Control Panel to install the wave device.
329The device you are trying to record from cannot recognize the current file format.
336Cannot use the song-pointer time format and the SMPTE time-format together.
337The specified MIDI device is already in use. Wait until it is free, and then try again.
338The specified MIDI device is not installed on the system. Use the Add/Remove Hardware Wizard in Control Panel to install the driver.
339The current MIDI Mapper setup refers to a MIDI device that is not installed on the system. Use MIDI Mapper to edit the setup.
340An error occurred using the specified port.
341All multimedia timers are being used by other applications. Quit one of these applications, and then try again.
342There is no current MIDI port.
343There are no MIDI devices installed on the system. Use the Add/Remove Hardware Wizard in Control Panel to install the driver.
346There is no display window.
347Could not create or use window.
348Cannot read the specified file. Make sure the file is still present, or check your disk or network connection.
349Cannot write to the specified file. Make sure you have enough disk space or are still connected to the network.
350Cannot determine media identity or universal product code.
(Read and Write property)

WindowsMCIMBS.Result as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS Audio Plugin ❌ No ✅ Yes ❌ No ❌ No All
The result of the last operation.
Example
dim v as WindowsMCIMBS

// get the current position, track and track count to display for the CD Audio.

v.Command="Status cdaudio Current Track"
v.run
MsgBox v.result

v.command="Status cdaudio Number of Tracks"
v.run
MsgBox v.result

v.command="Status cdaudio position"
v.run
MsgBox v.result

(Read and Write property)

The items on this page are in the following plugins: MBS Audio Plugin.


The biggest plugin in space...