0
0

I already did many programs with fmod, all worked, but when i was trying to init the audio in my game, a fatal error occurs and then all closes. Im using VC++ 8

  • You must to post comments
0
0

ah! and im using DirectX

  • You must to post comments
0
0

the class i did is like that
[code:2tgbc7ut]
cFmod::cFmod()
{
//CoInitialize(NULL);
m_Stream = NULL;
}

cFmod::~cFmod()
{
FSOUND_Stream_Stop(m_Stream);
FSOUND_Stream_Close(m_Stream);
FSOUND_Close();
//CoUninitialize();
}

BOOL cFmod::InitAudio()
{
if(!FSOUND_Init(44100, 32, 0))
{
FSOUND_Close();
return FALSE;
}
return TRUE;

}

BOOL cFmod::LoadFromFile(char *file)
{
m_Stream = FSOUND_Stream_Open(file, 0, 0, 0);
if (!m_Stream)
return FALSE;
return TRUE;
}

BOOL cFmod::Play()
{
if(FSOUND_Stream_Play(1, *&m_Stream) == -1)
return FALSE;
return TRUE;
}
[/code:2tgbc7ut]

  • You must to post comments
0
0

A DirecX driver never crashes. If something goes wrong it just reloads itself. I guess the error is somewhere in the user code. Need more information about the crash.

  • You must to post comments
0
0

Brett, you probably speaking about a soundcard driver. That could crash like any other driver, but not DX.

  • You must to post comments
0
0

what more information you need?

  • You must to post comments
0
0

More info about the crash itself could help indentifying the problem. I don’t think it was a BSOD crash. So, tell me what kind of exception it was (access violation, divide by zero, …). Did it happen in your executable or in a system library (kernel32.dll, dsound.dll, …)? Could you capture it with VS debugger? Windows version? DirecX version?

  • You must to post comments
0
0

what about the supplied examples do they run ok.

  • You must to post comments
0
0

ok sorry the problem was that i was using a previous version of fmod thank you :)

  • You must to post comments
Showing 8 results
Your Answer

Please first to submit.