The following illustration shows the play and record states:
The following table describes the play and record states:
|
State |
Description |
|
Idle |
The play and record functions are not active. |
|
Playing |
When the application initiates playing by launching a play function (vcePlay, vcePlayList, or vcePlayMessage), the Voice Message service is in the playing state. |
|
Recording |
When the application initiates recording by launching a record function (vceRecord or vceRecordMessage), the Voice Message service is in the recording state. |
|
Play stopping |
The application initiates stopping the play by launching vceStop. The Voice Message service generates a VCEEVN_PLAY_DONE event and returns to the idle state. |
|
Record stopping |
The application initiates stopping the record by launching vceStop. The Voice Message service generates a VCEEVN_RECORD_DONE event and returns to the idle state. |
The play or record state remains active until either:
A VCEEVN_PLAY_DONE event or a VCEEVN_RECORD_DONE event is received.
vceStop is called.