aboutsummaryrefslogtreecommitdiff
path: root/backends/wince
diff options
context:
space:
mode:
authorNicolas Bacca2003-07-16 07:16:34 +0000
committerNicolas Bacca2003-07-16 07:16:34 +0000
commita488dfe7330e93930ee989bc9dc5a1ebe2642cac (patch)
treed638f8e579c05c1b4f487df102cb7d508f29ba42 /backends/wince
parent8fbc3ed31bf6c8db9a1667779ffd88e4cba3c174 (diff)
downloadscummvm-rg350-a488dfe7330e93930ee989bc9dc5a1ebe2642cac.tar.gz
scummvm-rg350-a488dfe7330e93930ee989bc9dc5a1ebe2642cac.tar.bz2
scummvm-rg350-a488dfe7330e93930ee989bc9dc5a1ebe2642cac.zip
Fix compile without USE_VORBIS
svn-id: r9048
Diffstat (limited to 'backends/wince')
-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);