Update of /cvsroot/alpp/openalpp/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12681
Modified Files:
filestream.cpp
Log Message:
Changed the opening style of the ogg files to binary instead of modifying it
afterwards.
Index: filestream.cpp
===================================================================
RCS file: /cvsroot/alpp/openalpp/src/filestream.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** filestream.cpp 2 Mar 2004 11:01:14 -0000 1.7
--- filestream.cpp 23 Sep 2004 06:37:09 -0000 1.8
***************
*** 36,50 ****
throw (NameError,InitError,FileError) : Stream() {
! FILE *filehandle=fopen(filename.c_str(),"r");
if(!filehandle)
throw FileError("FileStream: Couldn't open file: ");
- #ifdef _WIN32 /* We need to set stdin/stdout to binary mode. Damn windows. */
- /* Beware the evil ifdef. We avoid these where we can, but this one we
- cannot. Don't add any more, you'll probably go to hell if you do. */
- _setmode( _fileno( filehandle ), _O_BINARY );
- _setmode( _fileno( filehandle ), _O_BINARY );
- #endif
-
// Check for file type, create a FileStreamUpdater if a known type is
// detected, otherwise throw an error.
--- 36,43 ----
throw (NameError,InitError,FileError) : Stream() {
! FILE *filehandle=fopen(filename.c_str(),"rb");
if(!filehandle)
throw FileError("FileStream: Couldn't open file: ");
// Check for file type, create a FileStreamUpdater if a known type is
// detected, otherwise throw an error.
|