From 9fb7e2081d99ba0e13dee47a1d37fbbfd769f8d0 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 2 Apr 2006 12:11:10 +0000 Subject: [PATCH 1/1] Make sure we actually set the sample rate to whatever the #define is. --- pitch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2