A Microphone object provides audio input by recording sounds.


lovr.audio.newMicrophoneCreate a new Microphone.


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

See also