Make sure we actually set the sample rate to whatever the #define is.
[pitch] / pitch.cpp
index be54056..658066b 100644 (file)
--- a/pitch.cpp
+++ b/pitch.cpp
@@ -87,7 +87,7 @@ int get_dsp_fd()
        int chan = 1;
        ioctl(fd, SOUND_PCM_WRITE_CHANNELS, &chan);
        
-       int rate = 22050;
+       int rate = SAMPLE_RATE;
        ioctl(fd, SOUND_PCM_WRITE_RATE, &rate);
 
        ioctl(3, SNDCTL_DSP_SYNC, 0);