Microsoft DirectX 9.0 |
The SetTransportBasicParameters method sets general properties of the transport.
Syntax
HRESULT SetTransportBasicParameters(
long Param,
long Value,
LPCOLESTR pszData
);
Parameters
Param
[in] Specifies which property to set. See Remarks for more information.
Value
[in] Specifies the value of the property as a long integer. See Remarks for more information.
pszData
[in] Specifies the value of the property as an LPOLESTR. See Remarks for more information.
Return Values
When this method succeeds, it returns S_OK. Otherwise it returns an HRESULT error code. Possible error codes include the following.
Return code | Description |
E_NOTIMPL | Device does not support setting this property. |
ERROR_DEVICE_REMOVED | Device was removed. |
Remarks
The Param parameter is a flag that specifies which property to set. For some flags, the property is numeric; use the Value parameter to specify the value. For other flags, the property is a string; use the pszData parameter to specify the value. In either case, the method ignores the other parameter.
For the following flags, the Value parameter takes a defined constant.
Constant | Description |
ED_FORMAT_MILLISECONDS | Milliseconds. |
ED_FORMAT_FRAMES | Frames. |
ED_FORMAT_REFERENCE_TIME | Reference time. |
ED_FORMAT_HMSF | Binary coded decimal, representing hours, minutes, seconds, and frames. |
ED_FORMAT_TMSF | Binary coded decimal, representing tracks, minutes, seconds, and frames. |
Constant | Description |
ED_TIMEREF_TIMECODE | Time code. |
ED_TIMEREF_CONTROL_TRACK | Control track. |
ED_TIMEREF_INDEX | Index. |
ED_TIMEREF_ATN | Absolute track number. This constant is defined in the header file Xprtdefs.h. |
Constant | Description |
ED_MODE_STOP | Stop. |
ED_MODE_REWIND | Rewind. |
ED_MODE_FREEZE | Freeze/pause. |
Constant | Description |
ED_RECORD_FORMAT_SP | Standard play. |
ED_RECORD_FORMAT_LP | Long play. |
ED_RECORD_FORMAT_EP | Extended play. |
Constant | Description |
OATRUE | On-screen display is enabled. |
OAFALSE | On-screen display is disabled. |
Constant | Description |
ED_STEP_FIELD | Fields. |
ED_STEP_FRAME | Frames. |
ED_STEP_3_2 | 3/2 Pulldown. |
For the following flags, use a numeric value in the Value parameter.
Flag | Description |
ED_TRANSBASIC_STEP_COUNT | Specifies the step count, in units defined by the ED_TRANSBASIC_STEP_UNIT flag. |
ED_TRANSBASIC_SET_FREEZE_TIMEOUT | Specifies the timeout for freeze mode, in units of the current time format. |
ED_TRANSBASIC_SETCLOCK | Sets the clock time. |
ED_TRANSBASIC_SET_COUNTER_VALUE | Sets the value of the counter. |
For the following flags, use a string in the pszData parameter.
Flag | Description |
ED_TRANSBASIC_VOLUME_NAME | Specifies the volume name. |
DV Implementation
MSDV does not support this method. It returns E_NOTIMPL.
See Also