User manual
Copyright © Dr Robot Inc. 2005
61
Syntax: lpVal = GetVoiceSegment();
Parameter: void
Return value: long lpVal; // pointer to current voice data.
Remark:
(1) You should use method GetVoiceSegLength() to get the length of the Voice
segment.
(2) Voice data is in PCM raw data format with 16bit, 8KHz sampling rate.
118 long GetVoiceSegLength();
Description:
GetVoiceSegLength returns the length of current voice data in memory.
Syntax: voiceLength = GetVoiceSegLength ();
Parameter: void
Return value: long voiceLength; // Length of current voice data.
See Also: GetVoiceSegment
119 void StartRecord(short voiceSegment);
Description:
StartRecord sends start-recording command to the Multimedia Controller (PMB5010).
The recorded voice data in length specified by voiceSegment will be stored in the shared
memory segment.
Syntax: StartRecord(voiceSegment);
Parameter: short voiceSegment; // segment number for voice data, range 1 -10
Return value: void
Remarks:
The parameter voiceSegment specify the time of voice segment, unit is 256 millisecond
(about 1/4 sec). Value could be 1- 10. For example, if voiceSegment is 4, 1.024 second
voice will be recorded.
VoiceSegmentEvent
event will fired when the data is ready.