aboutsummaryrefslogtreecommitdiff
path: root/backends/wince/wince.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/wince/wince.cpp')
-rw-r--r--backends/wince/wince.cpp4
1 files changed, 4 insertions, 0 deletions
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);