|
|
|
|
RecorderEvent (Function) In french: MagnetoEvénement Used to define a key for starting the recorder on Mobile Device (Pocket PC) and to specify a procedure that will be called at the end of recording. Remark: The RecorderXXX functions are available only if the current Mobile Device (Pocket PC) includes a recorder feature.
// The button 5 found on Mobile Device (Pocket PC) will be used to start the recorder // and the "EndOfRecording" procedure will be called at the end of recording RecorderEvent(App5Button, EndOfRecording, "MyFile.wav")
// Code of EndOfRecording procedure PROCEDURE EndOfRecording(FileName is string) // Retrieves the file size SizeInBytes is int SizeInBytes = fSize(FileName) // Displays an information message Message("End of file recording " + Â FileName, ... "The file size is: " + SizeInBytes)
Syntax
<Result> = RecorderEvent(<Key Number> , <End Procedure> [, <File name>])
<Result>: Boolean - True if the association was performed,
- False otherwise.
<Key Number>: Integer constant Key that will be associated with the recorder start: | | App1Button | Button 1 found on the Mobile Device (Pocket PC). | App2Button | Button 2 found on the Mobile Device (Pocket PC). | App3Button | Button 3 found on the Mobile Device (Pocket PC). | App4Button | Button 4 found on the Mobile Device (Pocket PC). | App5Button | Button 5 found on the Mobile Device (Pocket PC). | App6Button | Button 6 found on the Mobile Device (Pocket PC). |
Remark: In most cases, the button associated with the startup of the recorder corresponds to the App5Button constant. <End Procedure>: Procedure name Name of WLanguage procedure ("callback" procedure) that will be called at the end of recording. If no procedure must be called, this parameter corresponds to an empty string ("").This procedure has the following format:
PROCEDURE <Procedure name>(<Name of recorded file>)
During the call to this procedure, <Name of recorded file> is automatically filled: it contains the name of the file in which the recording was performed. This name corresponds to <File name> (if this parameter is specified). <File name>: Optional character string Name of the output file in which the recording will be performed. A default name will be used if this parameter is not specified (recording1, recording2, ...). Remarks - To cancel the associations established by RecorderEvent, use RecorderEndEvent.
- The recording is automatically stopped when another window takes focus.
- To find out the associations of keys already defined on the Mobile Device (Pocket PC), select "Parameters .. Buttons" on your Mobile Device.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|