Microphone

A Microphone object provides audio input by recording sounds.

Constructor

lovr.audio.newMicrophoneCreate a new Microphone.

Methods

Microphone:getNameGet the name of the Microphone.
Microphone:getSampleCountGet the number of recorded audio samples.
Microphone:getSampleRateGet the sample rate of the Microphone.
Microphone:getDataGet a new SoundData with recorded audio.
Microphone:isRecordingGet whether the Microphone is recording.
Microphone:getChannelCountGet the number of channels recorded by the Microphone.
Microphone:getBitDepthGet the bit depth of the Microphone.
Microphone:startRecordingStart recording.
Microphone:stopRecordingStop recording.

See also