0
0

i get error 52 whenever i try to run system::init. (requested dsp unit type or codec is unavailable). here is the code that i’m using:

[code:3294094g]
LRESULT cWinApp::m_WndProc (HWND hWnd, UINT nCmd, WPARAM wParam, LPARAM lParam)
{
switch (nCmd)
{
case WM_CREATE:
g_Sound.Init( );
return DefWindowProc( hWnd, nCmd, wParam, lParam );

[/code:3294094g]

[code:3294094g]
int cSound::Init ()
{
unsigned int nVersion;

ERRCHECK( FMOD::System_Create( &m_pSystem ) );

ERRCHECK( m_pSystem->getVersion( &nVersion ) );

if ( nVersion != FMOD_VERSION )
{
    MessageBox( NULL, "Bad Library Version, not using sound", "FMOD Error", MB_OK );

    m_pSystem->close( );
    m_pSystem->release( );

    m_pSystem = NULL;

    return ERROR_FAIL;
}

ERRCHECK( m_pSystem->init( 32, FMOD_INIT_NORMAL, NULL ) );

[/code:3294094g]

can somebody tell me what i’m doing wrong?

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.