Make sure we actually set the sample rate to whatever the #define is.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 2 Apr 2006 12:11:10 +0000 (12:11 +0000)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 2 Apr 2006 12:11:10 +0000 (12:11 +0000)
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);