0
0

Hi! (I’m quite new to FMOD. Ex seems to become great!!!)
I can’t get 3D sound to work with my 7.1 & Audigy 2 ZS on Win2000. The multispeakeroutput in FMODex doesn’t work. And my code sample below won’t work either. I do have configured the Creative’s Speaker settings correctly, but it still won’t work. Anybody having the same problems?

Thanx!

[code:el14pgi9]
void myTestApp::InitSoundEngine()
{
result = FMOD::System_Create(&system);
ERRCHECK(result);
result=system->setPluginPath("plugins/");
result = system->setOutput(FMOD_OUTPUT_DSOUND);
//result= system->setOutputFormat(48000, FMOD_SOUND_FORMAT_PCM16,8, NULL);
result = system->init(32, 0, (FMOD_INITFLAGS)(FMOD_INIT_NORMAL |FMOD_INIT_GLOBALFOCUS | FMOD_INIT_3D_RIGHTHANDED | FMOD_INIT_DSOUND_DEFERRED), NULL);
}

void myTestApp::loadSoundData()
{
//Initialize all the sources/listener properties
listenerpos.x = 0.0f;
listenerpos.y = 0.0f;
listenerpos.z= 0.0f;
...

    result = system->createSound("wavdata/Voice.wav", (FMOD_MODE)(FMOD_HARDWARE| FMOD_3D | FMOD_3D_HEADRELATIVE), &sound1);
    result = sound1->set3DMinMaxDistance(4.0f, 10000.0f);
    result = sound1->setMode(FMOD_LOOP_NORMAL);

   //play sound when pressing 'P'       
    play();

}

void myTestApp::play()
{
result = system->playSound(FMOD_CHANNEL_FREE, sound1, true, &channel1);
//result = channel1->setMode(FMOD_3D_HEADRELATIVE);
result = channel1->setPaused(false);

}

//in the update loop
//calculate the new position (WORKS!)
 result = channel1->set3DAttributes(&sourcepos, &sourcevel);
 result = system->set3DListenerAttributes(0, &listenerpos, &listenervel, &listenerforward, &listenerup);

system->update();

[/code:el14pgi9]

  • You must to post comments
0
0

Just a few questions since this seems vague and it might help you find an answer quicker…

Does 3D audio work in FMod 3.x?
Do any of the stock FMod EX examples work?
What do you mean by ‘won’t work’? Does the example refuse to run, does it not put out any audio, does it put out stereo audio, does it put out audio with the channels mixed up…

  • You must to post comments
0
0

Sorry, in Ex the 3d.exe-sample gives just stereo (front-l/r).
The multispeakeroutput.exe: just stereo (front-l/r)

In FMOD3, the sweeping (panning in 3D) appears in side-speakers-l/r. So I guess that’s correct.

My test code in Ex gives me stereo-panning (front-l/r) as for Ex-samples above.

  • You must to post comments
0
0

I have the latest directsound-version and the latest audigy-drivers, so that shouldn’t be a problem.

[quote:2m0cf8nn]3d in software does not support multichannel speaker output yet. [/quote:2m0cf8nn]
As my code-example and your 3d.exe-example both do hardware 3d-audio my concern isn’t about software 3d. Neither work, Ex, as one could suppose.

[quote:2m0cf8nn]That is what the multiplespeakkeroutput example does.[/quote:2m0cf8nn]
Yeah, but it doesn’t work on my config. (see description in older post) While the 3d.exe in fmod3 and all other 3d-audio stuff I’ve been working with just work fine.

  • You must to post comments
0
0

Thanx for these quick answers! But I must say it’s strange that nobody has hit the same bug? Or does 3D sound in Ex works fine for everybody, but me? Maybe I should rewrite my app for FMOD3.

Regards, David.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.