[asterisk-commits] trunk r16560 - /trunk/channels/chan_oss.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Mar 30 14:45:45 MST 2006


Author: rizzo
Date: Thu Mar 30 15:45:43 2006
New Revision: 16560

URL: http://svn.digium.com/view/asterisk?rev=16560&view=rev
Log:
don't use 8000, use DEFAULT_SAMPLE_RATE


Modified:
    trunk/channels/chan_oss.c

Modified: trunk/channels/chan_oss.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_oss.c?rev=16560&r1=16559&r2=16560&view=diff
==============================================================================
--- trunk/channels/chan_oss.c (original)
+++ trunk/channels/chan_oss.c Thu Mar 30 15:45:43 2006
@@ -671,7 +671,7 @@
 		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) {



More information about the asterisk-commits mailing list