int32 DSSetChannel (Item msgItem, DSRequestMsgPtr reqMsg, DSStreamCBPtr streamCBPtr, DSDataType streamType, long channelNumber, long channelStatus)
DSSetChannel()
sets the status of the specified channel within the stream.
DSSetChannel()
sets the members of the message data structure required to set the channel status. (The message is the DSRequestMsg
identified by reqMsg
.) DSSetChannel()
will call either SendMsg()
or WaitMsg()
to send the message. to the DataStreamer: SendMsg()
if reqMsg
specifies a message; WaitMsg()
if reqMsg
is set to NULL
.
msgItem
reqMsg
DSRequestMsg
message that is formatted and sent to the DataStreamer. A value of NULL
forces creation of an internal DSRequestMsg
message and synchronous operation.
streamCBPtr
streamType
channelNumber
channelStatus
reqMsg
are set to the following values:
whatToDo
- kDSOpSetChannel
msg.setChannel.streamType
msg.setChannel.channelNumber
msg.setChannel.channelStatusPtr
kDSInvalidDSRequest
whatToDo
set to invalid value)
kDSNoReplyPortErr
SendMsg()
or WaitPort()
failed
VALIDATE_REQUEST_CODE
symbol is enabled).
See "Error Messages" in the 3DO Portfolio Reference Manual for a listing of error messages returned by SendMsg()
and WaitPort()
.
DSGetChannel