]> git.sesse.net Git - pitch/commitdiff
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 be540560e1f309488f95f1141d6f3dc78eb48c25..658066b0edcf1911f08f253ad5a462c10e8fd873 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 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);
        ioctl(fd, SOUND_PCM_WRITE_RATE, &rate);
 
        ioctl(3, SNDCTL_DSP_SYNC, 0);