Resampling for FileAudioSource + CmdAudioSource
resample
function now returns a ResampledAudioSource
.
The function works for CmdAudioSource
and FileAudioSource
.
It calls a soxpipeline
function which runs a SOX command and runs a small pipeline to read the new resampled audio stream.