Code: Select all
-- choose the first recording device
local rdList = love.audio.getRecordingDevices()
local rdIndex = 1
local rd = rdList[rdIndex]
-- audio settings
local SAMPLE_RATE = 44100
local BIT_DEPTH = 16
local CHANNEL_COUNT = 1
local BUFFER_SIZE = SAMPLE_RATE * 2
-- start recording
rd:start( BUFFER_SIZE, SAMPLE_RATE, BIT_DEPTH, CHANNEL_COUNT )
When I look at the results in an FFT, the frequency only goes up to about 5850 Hz according to Praat. So the sampling rate isn't anything close to the requested 44100 samples/second.
I've tried this with multiple microphones, and on multiple Win10 machines, using Love 11.3.0. The results are the same.
I haven't had this kind of problem with the playback devices, so I'm wondering if this is a known limitation with using microphones with Love's audio library on Windows, or if perhaps there's something I've gotten wrong.
Thanks!