Changer Command (0x001C - 0x0003)
Mandatory for autochangers.This message directs the CDM to perform one of three commands associated with moving media within an autochanger: move, preload, or eject media.
LONG source LONG destination LONG commandType
The fields in the buffer structure are defined as follows:
Example: Given the configuration in this table, if the Media manager called ChangerCommand and filled the buffer with the following information:
0x000B <== source - exchange slot "0" 0x0001 <== destination - device "1" 0x0001 <== changer preload command
the next Media Manager command would fill the buffer with the following information:
0x000B 0x0001 0x0000 <== changer move command
This is a Media Manager control function [packaged in a CDMMessageStruct] that has 0x001C as the value in its function field to identify that it is a function in the changer category. The value in parameter0 acts as a subfunction index (0x0003) to identify what function to perform. The CDM can either implement a secondary jump table using the value in parameter0 as an index or use a switch statement on parameter0 to call its routine to field the message.