[xiph-cvs] cvs commit: ao/src/plugins/oss ao_oss.c
Warren Dukes
shank at xiph.org
Mon May 24 15:40:32 PDT 2004
shank 04/05/24 18:40:32
Modified: src/plugins/oss ao_oss.c
Log:
increase sampleRate tolerance from 1% to 2%, as nForce2's rate is 48813, which
is 1.7% difference from 48000
Revision Changes Path
1.20 +1 -1 ao/src/plugins/oss/ao_oss.c
Index: ao_oss.c
===================================================================
RCS file: /usr/local/cvsroot/ao/src/plugins/oss/ao_oss.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- a/ao_oss.c 13 Apr 2004 03:03:55 -0000 1.19
+++ b/ao_oss.c 24 May 2004 22:40:32 -0000 1.20
@@ -264,7 +264,7 @@
exact data rate, but something close. Fail only if completely out
of whack. */
if (ioctl(internal->fd,SNDCTL_DSP_SPEED, &tmp) < 0
- || tmp > 1.01 * format->rate || tmp < 0.99 * format->rate) {
+ || tmp > 1.02 * format->rate || tmp < 0.98 * format->rate) {
fprintf(stderr, "libao - OSS cannot set rate to %d\n",
format->rate);
goto ERR;
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list