search for: _fsetmode

Displaying 2 results from an estimated 2 matches for "_fsetmode".

2008 Jan 11
1
Patch for OS/2 STDIN/STDOUT
...iff -ruN o:src/speexdec.c src/speexdec.c --- o:src/speexdec.c 2007-12-08 05:01:08.000000000 +0100 +++ src/speexdec.c 2008-01-12 00:48:00.000000000 +0100 @@ -231,6 +231,8 @@ { #if defined WIN32 || defined _WIN32 _setmode(_fileno(stdout), _O_BINARY); +#elif defined OS2 + _fsetmode(stdout,"b"); #endif fout=stdout; } diff -ruN o:src/speexenc.c src/speexenc.c --- o:src/speexenc.c 2007-12-08 05:01:08.000000000 +0100 +++ src/speexenc.c 2008-01-12 00:47:06.000000000 +0100 @@ -514,6 +514,8 @@ { #if defined WIN32 || defined _WIN32 _setm...
2000 Sep 10
2
Vorbis on OS/2
...stdin) set to binary mode to work properly. Could someone with CVS access please add the following three lines below the WIN32 binary fix in examples/vorbisfile_example.c examples/encoder_example.c examples/decoder_example.c #ifdef __EMX__ /* OS/2 EMX System needs stdout set to binary */ _fsetmode(stdout,"b"); #endif With this in place, cat <ogg file> | vorbisfile_example > <wav file> followed by wavplay <wav file> works fine I'll take a look at ogg123 and see about the posibilities of making it work on os/2 once I'm back at college in a few weeks....