0
0

Hi

I have a problem with the FMOD::Geometry addPolygon-Function.
If I add a Polygon to the Geometry nothing changes on the soundsource!
Can someone tell me whats wrong or give me a short example to add Polygons?

There are not all parts of the implementation in the code….
[code:3dkoksd6]
if (soundType == SOUND_3D)
{
mode = (FMOD_HARDWARE | FMOD_3D);
}
else if (soundType == SOUND_BACKGROUND)
{
mode = FMOD_HARDWARE;
}

if (playType == PLAY_STREAMING)
{
    result = manager->getSystem()->createStream(soundFile, mode, 0, &_sound);
} else
{
    result = manager->getSystem()->createSound(soundFile, mode, 0, &_sound);
}


ERRCHECK(result);


result = _sound->set3DMinMaxDistance(_minDistance, _maxDistance);
ERRCHECK(result);
result = _sound->setMode(FMOD_LOOP_NORMAL);
ERRCHECK(result);

result = _manager->getSystem()->createChannelGroup("Group A", &_group);
ERRCHECK(result);

[/code:3dkoksd6]

Thanks for help!

  • You must to post comments
0
0

hi addict, welcome to the FMOD forum.

Check out the geometry example in FMOD install directory.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.