# Class: soundcapture

Capturing audio input from different sources. If the first call on any of the functions of this class are done, the capturing is initialized. If the initialization fails, false plus the eror is returned. Further calls on functions of this class will be terminated too.

## Methods:

### Method overview:

- defaultdevice
- devicelist
- open
- start
- stop

defaultdevice ()
  returns: (string)
  returns default capture device
devicelist ()
  returns: ([string,...])
  returns a list of available devices
open (string filename, int samplefrequence, int format 0...3, int buffersize, [string device])
  returns: (boolean sucecss,[string error])
  opens a device for recording. Only one open device is supported here. The format is a number from 0 to 3 and represents MONO 8 bit, MONO 16 bit, STEREO 8 bit and STEREO 16 bit. If no device is given, the default device is used.
start ()
  returns: ()
  Starts recording.
stop ()
  returns: ()
  Stops the recording and writes the buffer to the file and closes it.