RecordSound

Family: Sound · One form

What it does

RecordSound writes to a Sound object: it records rather than reads. It takes szFilename (a string), and returns nothing.

Syntax

RecordSound(szFilename string)

Parameters

NameType
szFilenamestring

Every form returns

nothing

Example · generated

RecordSound("assets/sound.wav")DO  Sync()LOOP

RecordSound is called with values of the types its signature asks for. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

37 commands in Sound