0
0

I use the fmodexL.dll and fmod_eventL.dll to compile my program, I can see the debug messages in Visual Studio output window.
I am not able to find the file named "fmod.log".
I called FMOD::System::setAdvancedSettings, set the debugFilename, but I am not able to find the file either.

Help me, thank you.

My fmod version is 4.40.08, IDE is Visual studio 2003(in company).

It’s interesting, I use the same fmod version and Visual Studio 2010, the fmod.log is in the exe folder.

  • You must to post comments
0
0

Hm I think that was changed recently to be more consistent with the other platforms. You can get file writing back by doing the following

typedef enum
{
    DEBUG_STDOUT,
    DEBUG_FILE,
    DEBUG_BUFFERED_STDOUT,
    DEBUG_BUFFERED_FILE
} FMOD_DEBUGMODE;

ifdef __cplusplus

extern "C" {

endif

FMOD_RESULT F_API FMOD_Debug_SetMode(unsigned int mode, unsigned int buffersize)

ifdef __cplusplus

}

endif

then call FMOD_Debug_SetMode with DEBUG_FILE (buffered is faster but allocates memory)

  • You must to post comments
0
0

Thank you, brett.
The method is worked, I see the log file.

What is the bufferSize’s meaning? The buffersize log file ‘s size or one line?

  • You must to post comments
0
0

log data will go to a buffer in memory defined by the size, when it hits the end of the buffer, it flushes it to file or tty. Bigger buffer means less but bigger flushes. No buffer just means it logs every line to the file or tty as they are issued.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.