LitDev Extension API

LD3DView LDArray LDBits LDBlueTooth LDCall
LDChart LDClient LDClipboard LDColours LDCommPort
LDController LDControls LDCursors LDDataBase LDDateTime
LDDebug LDDialogs LDDictionary LDEffect LDEmail
LDEncryption LDEvents LDFastArray LDFastShapes LDFigures
LDFile LDFocus LDftp LDGraph LDGraphicsWindow
LDHID LDIcon LDImage LDInline LDIOWarrior
LDList LDLogic LDMath LDMathX LDMatrix
LDMusic LDNetwork LDPhysics LDProcess LDQueue
LDRegex LDResources LDScrollBars LDSearch LDServer
LDSettings LDShapes LDShell LDSort LDSound
LDSpeech LDStatistics LDStopwatch LDText LDTextWindow
LDTimer LDTranslate LDUnits LDUtilities LDVector
LDWaveForm LDWebCam LDWindows LDxml LDZip

LDSound
A Sound Recorder. A microphone (may be internal) is required.
System sounds can also be played (if they are set appropriately).


Asterisk Beep Exclamation
Hand MusicPlayTime Pause
Question Resume Start
Stop Tone Volume

Asterisk()
Play system Asterisk sound.

Beep()
Play system Beep sound.

Exclamation()
Play system Exclamation sound.

Hand()
Play system Hand sound.

MusicPlayTime(fileName)
Gets the play time for a music file.
fileName The full path of the music file e.g. "C:\Users\Public\Music\song.mp3".
returns The file play time in seconds (0 if failed).

Pause()
Pause a recording.

Question()
Play system Question sound.

Resume()
Resume a paused recording.

Start()
Start recording sound.

Stop(wavFile)
Stop and save current sound recording.
wavFile The full path to a wav file to save the recording.
The extension will be set to ".wav" if it is not already.

returns "SUCCESS" or "FAILED".

Tone(frequency,duration)
Play a system tone sound with frequency and duration.
Uses the motherboard speaker (not the sound card) and may be low quality or not available.

frequency The tone frequency (from 37 to 32767 Hz).
duration The tone duration in ms.

Volume(command)
Change the volume of sounds.
command One of the following options to change the sound volume level.
"Up" increase volume level.
"Down" decrease volume level.
"Mute" toggle between mute and un-mute volume level.