don't use 8000, use DEFAULT_SAMPLE_RATE
authorLuigi Rizzo <rizzo@icir.org>
Thu, 30 Mar 2006 21:45:43 +0000 (21:45 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Thu, 30 Mar 2006 21:45:43 +0000 (21:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16560 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_oss.c

index 89c3e3e..cb9df08 100644 (file)
@@ -671,7 +671,7 @@ static int setformat(struct chan_oss_pvt *o, int mode)
                ast_log(LOG_WARNING, "Failed to set audio device to mono\n");
                return -1;
        }
-       fmt = desired = 8000; /* 8000 Hz desired */
+       fmt = desired = DEFAULT_SAMPLE_RATE; /* 8000 Hz desired */
        res = ioctl(fd, SNDCTL_DSP_SPEED, &fmt);
 
        if (res < 0) {