0
0

Sorry another noob..
I try this on a PC a different PC at work and I get from FSOUND_GetError() id 3.

[code:14t0q4so]
if ( ::FSOUND_GetVersion() < FMOD_VERSION )
{
LOG(PR_ERROR,"Invalid fmod.dll version! %.02f\f", ::FSOUND_GetVersion() );
return E_FAIL;
}

FSOUND_SetHWND(NULL);
if( !FSOUND_Init(44100, 32, FSOUND_INIT_GLOBALFOCUS))
{
LOG(PR_ERROR,"%s id: %d", FMOD_ErrorString(FSOUND_GetError()), FSOUND_GetError());
}

[/code:14t0q4so]

Should I get 44100 from the hardware??

Anyone got any nice examples of a soundmanager :)

regards,

tekjunkie

  • You must to post comments
0
0

[quote="brett":1usgc19b]you are checking if fsound_init is true, then print an error.

it is supposed to be if fsound_init is FALSE.[/quote:1usgc19b]
That was a typo above not in my code my code is checking for false!

I run it on my PC and it was fine played a sound.
I then when and played the same code on another PC(win2000) and I get back error id 3.

Sorry for the typo but I do get the error.

Do you have some nice demo code somewhere, else I’m going to be asking a lot of question.
I found a lot on the net but but I want something I know it the correct way of doing stuff.

tekjunkie

  • You must to post comments
0
0

[quote="brett":pwh6p3wr]there is plenty of sample code there.

If it doesnt work, then either your sound device is broken, or possibly due to the operating system being old, it doesnt allow a new program to open the sound device while another program is using it. See if anything else is running at the same time that might be using the soundcard.[/quote:pwh6p3wr]

One clue no DSOUND.DLL, can that?

  • You must to post comments
0
0

[quote="brett":3vxr7knx]do you have directx installed on that machine?
you can always try the safest output mode , which is winmm and is done with FSOUND_SetOutput(FSOUND_OUTPUT_WINMM);[/quote:3vxr7knx]

No I don’t think it has Directx installed, my software at this moment doesn’t need it and I tested on a clear win2000 install.
Should I always use FSOUND_SetOutput(FSOUND_OUTPUT_WINMM)?

tekjunkie

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.