vceGetContextInfo returns the current Voice Message service status of the specified context, including information about the current, or most recent, play or record operation.
The status block includes the following information:
Current position in milliseconds relative to the beginning of the current message.
Reason last play or record ended (0 initially and while function is active).
Current or last function (play, record, or none).
Underruns (cumulative for the lifetime of the context).
Auxiliary error code (for example, an OS error from file access).
Current value of play gain. This value is used for the next playing function if the play gain parameter is set to VCE_CURRENT_VALUE. Otherwise, this value is set to the value of the play gain parameter when playing starts. Use vceSetPlayGain to change the value.
Current value of play speed. This value is used for the next playing function if the play speed parameter is set to VCE_CURRENT_VALUE. Otherwise, this value is set to the value of the play speed parameter when playing starts. Use vceSetPlaySpeed to change the value.
Number of messages in the current message. Use vceGetCurrentList to retrieve the actual message list.
Encoding of the current message.
Frame size of the encoding.
Frame duration of the encoding.
The millisecond and position values are updated as each buffer is submitted internally for play or completed for record.
Note: When play ends, the values can be adjusted downward if not all data submitted to the device was actually played.