I use RTAudio to get a signal from Microphone and use this signal as the input for another encoder. It seems UWP always return fixed audio sample rate which different from sample rate my encoder wants.
WASAPICapture return 44100 Hz
signal, 2 channel
(input).
I want to convert this input to 1600 Hz
signal, 1 channel
(output).
How do I make the resample correctly?
Data I received from WASAPICapture’s callback. This callback is called every 64 ms
, and each time it gave me 480
samples.
My Encoder required 320
sample every 20 ms
.
What should I do to get this (re-frame)?
Could you suggest me any library to do this? or should I write the code myself?