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?
result = FMOD::System_Create(&system);
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);
//Initialize all the sources/listener properties
listenerpos.x = 0.0f;
listenerpos.y = 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();
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();
- celloman asked 12 years ago
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…
- Janus answered 12 years ago
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.
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.
Please login first to submit.