From: Steinar H. Gunderson Date: Sun, 2 Apr 2006 12:11:10 +0000 (+0000) Subject: Make sure we actually set the sample rate to whatever the #define is. X-Git-Url: https://git.sesse.net/?p=pitch;a=commitdiff_plain;h=9fb7e2081d99ba0e13dee47a1d37fbbfd769f8d0 Make sure we actually set the sample rate to whatever the #define is. --- diff --git a/pitch.cpp b/pitch.cpp index be54056..658066b 100644 --- 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);