[Scummvm-cvs-logs] CVS: scummvm/backends/wince wince.cpp,1.14,1.15

Nicolas Bacca arisme at users.sourceforge.net
Wed Jul 16 00:17:25 CEST 2003


Update of /cvsroot/scummvm/scummvm/backends/wince
In directory sc8-pr-cvs1:/tmp/cvs-serv5166

Modified Files:
	wince.cpp 
Log Message:
Fix compile without USE_VORBIS

Index: wince.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/wince/wince.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- wince.cpp	13 Jul 2003 15:11:48 -0000	1.14
+++ wince.cpp	16 Jul 2003 07:16:34 -0000	1.15
@@ -762,6 +762,7 @@
 }
 
 
+#ifdef USE_VORBIS
 bool checkOggSampleRate(char *directory) {
 	char trackFile[255];
 	FILE *testFile;
@@ -782,6 +783,7 @@
 
 	return false;
 }
+#endif
 
 
 void runGame(char *game_name) {
@@ -831,10 +833,12 @@
 	//new_audio_rate = (strcmp(game_name, "dig") == 0 || strcmp(game_name, "monkey") == 0);
 	new_audio_rate = (strcmp(game_name, "dig") == 0 || strcmp(game_name, "ft") == 0 || strcmp(game_name, "comi") == 0);
 
+#ifdef USE_VORBIS
 	// Modify the sample rate on the fly if OGG is involved 
 
 	if (!new_audio_rate)
 		new_audio_rate = checkOggSampleRate(_directory);
+#endif
 
 	detector.parseCommandLine(argc, argv);
 





More information about the Scummvm-git-logs mailing list