Closed ofloveandhate closed 7 years ago
From a quick look at the code, you should be able to set SAMPLE_RATE to more-or-less anything. Let us know how it goes!
indeed, simply changing this parameter effectively changes the playback rate. i tried it with 4000 and 16000, results as expected. thanks!
I see
#define SAMPLE_RATE 8000
inPCM.c
.Does this mean I can change the sample rate to 4000hz just by changing this one number, effectively letting me double the length of my samples, but at lower quality? Are there other implications to changing this number? Must it be a divisor or multiple of 8000?