1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Description: fix an issue.
Author: Lukáš Lalinský <lalinsky@gmail.com>
Last-Update: 2006-08-22
Index: libofa-0.9.3/examples/wavefile.cpp
===================================================================
--- libofa-0.9.3.orig/examples/wavefile.cpp
+++ libofa-0.9.3/examples/wavefile.cpp
@@ -42,7 +42,11 @@ AudioData* loadWaveFile(char *file) {
int srate = 0;
int channels = 0;
- int fd = open(file, O_RDONLY | 0x8000);
+#ifdef WIN32
+ int fd = open(file, O_RDONLY | O_BINARY);
+#else
+ int fd = open(file, O_RDONLY);
+#endif
if (fd == -1)
return 0;
|