VoiceRecord.mesa
interface for adding voice to both voice and text viewers
Ades, April 24, 1986 11:04:16 am PST
DIRECTORY
Menus USING [MenuProc],
VoiceViewers USING [Selection];
VoiceRecord: CEDAR DEFINITIONS = BEGIN
RecordingInProgress: PROC RETURNS [BOOLEAN];
tests whether the recording system is active: n.b. this should only be regarded as a hint and StopRecording should be called to make sure before beginning to playback or anything else which needs to be synchronised: however since in this system recording and playback requests will be serialised using mouse button queues, this procedure is regarded as the truth
AddVoiceProc: Menus.MenuProc;
the procedure behind all AddVoice buttons
StopRecording: PROC;
should be called after VoiceRope.Stop has been called, to halt the recording mechanism
DictationMachine: Menus.MenuProc;
the procedure behind all DictationMachine buttons
RecordInPlaceOfSelection: PROC [selection: VoiceViewers.Selection];
this gets called by DictationOps when a selection [possibly zero length, in which case don't delete it] is to be replaced by new voice input: the selection is assumed to be locked with GetVoiceLock and there is assumed to be no playback in progress at the time of the call
END.