QUOTE(wisodev @ May 10 2006, 09:37)

Under windows (VC++ compile) the psy mode 3 is causing crash but mode -1,1,2 works,
actually only encoder woks not the output files, they are all noise (foobar2000,Winamp and other players) ;-(.
Did you remember to do the following for win32?
CODE
FILE*
open_output_file( char* filename )
{
FILE* file;
// Do they want STDOUT ?
if (strncmp( filename, "-", 1 )==0) {
file = stdout;
#ifdef _WIN32
_setmode( _fileno(stdout), _O_BINARY );
#endif
} else {
#ifdef _WIN32
file = fopen(filename, "wb");
#else
file = fopen(filename, "w");
#endif
}
// Check for errors
if (file == NULL) {
perror("Failed to open output file");
exit(ERR_OPENING_OUTPUT);
}
return file;
}
Regardless, you are correct that psy mode 3 fails and all other modes produce correct results.