Available since LÖVE 11.0 |
This function is not supported in earlier versions. |
Begins recording audio using this device.
success = RecordingDevice:start( samplecount, samplerate, bitdepth, channels )
number samplecount
number samplerate (8000)
number bitdepth (16)
number channels (1)
boolean success
A ring buffer is used internally to store recorded data until RecordingDevice:getData or RecordingDevice:stop are called – the former clears the buffer. If the buffer completely fills up before getData or stop are called, the oldest data that doesn't fit into the buffer will be lost.