sound recording functions.
Members
-
inner SNDIN_8BIT
-
Properties:
Name Type Description SNDIN_8BITboolean true if 8bit input is available. -
inner SNDIN_16BIT
-
Properties:
Name Type Description SNDIN_16BITboolean true if 16bit input is available. -
inner SNDIN_AVAILABLE
-
Properties:
Name Type Description SNDIN_AVAILABLEboolean true if sound recording is available. -
inner SNDIN_STEREO
-
Properties:
Name Type Description SNDIN_STEREOboolean true if stereo input is available.
Methods
-
inner ReadSoundInput() → {Array.<number>}
-
get the actuall sound data.
Returns:
Array.<number> - returns one or two arrays with sound data or null if no data available. -
inner SoundInputSource(src)
-
select sound input source.
Parameters:
Name Type Description src* a value from SOUND. -
inner SoundStartInput(rate, bits, stereo)
-
start sound recording with given parameters.
Parameters:
Name Type Description ratenumber sample rate. bitsnumber 8 or 16 bits. stereobool true for stereo recording. -
inner SoundStopInput()
-
stop sound recording.