From a488dfe7330e93930ee989bc9dc5a1ebe2642cac Mon Sep 17 00:00:00 2001 From: Nicolas Bacca Date: Wed, 16 Jul 2003 07:16:34 +0000 Subject: Fix compile without USE_VORBIS svn-id: r9048 --- backends/wince/wince.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'backends/wince') diff --git a/backends/wince/wince.cpp b/backends/wince/wince.cpp index 5d8d366dd7..d90797d4d8 100644 --- a/backends/wince/wince.cpp +++ b/backends/wince/wince.cpp @@ -762,6 +762,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLin } +#ifdef USE_VORBIS bool checkOggSampleRate(char *directory) { char trackFile[255]; FILE *testFile; @@ -782,6 +783,7 @@ bool checkOggSampleRate(char *directory) { return false; } +#endif void runGame(char *game_name) { @@ -831,10 +833,12 @@ void runGame(char *game_name) { //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); -- cgit v1.2.3