[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-patches
Subject:    PATCH: audio
From:       Marcus Meissner <marcus () jet ! franken ! de>
Date:       1999-12-21 19:29:42
[Download RAW message or body]

Changelog:
	cast the unsigned int to signed, or NEAR_MATCH will not work

Index: audio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/wineoss/audio.c,v
retrieving revision 1.5
diff -u -r1.5 audio.c
--- audio.c	1999/12/05 02:18:59	1.5
+++ audio.c	1999/12/21 19:33:17
@@ -32,7 +32,7 @@
 DEFAULT_DEBUG_CHANNEL(wave)
 
 /* Allow 1% deviation for sample rates (some ES137x cards) */
-#define NEAR_MATCH(rate1,rate2) (((100*(rate1-rate2))/rate1)==0)
+#define NEAR_MATCH(rate1,rate2) (((100*(rate1-(int)rate2))/rate1)==0)
 
 #ifdef HAVE_OSS
 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic