Syntax

Result = dbRecordSound(SoundID [, Duration])

Description

If #PB_Any is used as the SoundID parameter, the new ID will be returned as 'Result'. Otherwise the value of 'Result' is the same value passed as the SoundID parameter.

This command will start recording a sound from the microphone. You can optionally specify an additional integer parameter to record a sound for any amount of seconds. The default if this parameter is not specified is five seconds of recording. You must specify an empty sound number using an integer value. Duration is specified in milliseconds. Be aware that this command will only start a recording, and only capture for the specified duration. In order to complete the recording and prepare the sound for regular use, you must call the dbStopRecordingSound command.

See Also

dbStopRecordingSound