0
0

Hi,

Im using windows with microsoft visual and have a sound blaster x fi card,
Iv been trying to set up reverb properties in my project. So firstly i set up the dsp efects which are working fine but I would like to use the reverb set up to avail of the more advanced control options. So i used the tutorial in the api and set up a reverb as follows..and also i used the basic program from the api to set up a program that simply plays a 3D sound….

    FMOD_REVERB_PROPERTIES prop1 = FMOD_PRESET_SEWERPIPE;
FMOD_REVERB_PROPERTIES prop2 = FMOD_PRESET_CAVE;
FMOD_REVERB_PROPERTIES prop3 = FMOD_PRESET_PARKINGLOT;
    FMOD_REVERB_PROPERTIES prop4 = FMOD_PRESET_OFF;

result = system->setReverbAmbientProperties(&prop4);
ERRCHECK(result);

FMOD::Reverb     *reverb;
result = system->createReverb(&reverb);
ERRCHECK(result);
result = reverb->setProperties(&prop1);
ERRCHECK(result);

FMOD_VECTOR pos = { 0.0f, 0.0f, 0.0f };
float mindist = 10.0f; 
float maxdist = 20.0f;
reverb->set3DAttributes(&pos, mindist, maxdist);

With the previous code followed by the appropriate code to play sound i get nothing but the dry source, then adding the following code i expect to be able to manipulate the channel properties for example

channel1->getReverbProperties( &prop1);
prop1.Room = -1000;
channel1->setReverbProperties( &prop1)

Once again i get nothing however when i use
result = system->setReverbProperties(&prop1);
the reverb plays perfectly and if i want to change the levels the following works
prop1.Room = -10000;
result = system->setReverbProperties(&prop1);

My question is i want to be able to change the reverb properties for each individual sound i.e channel is this possible and how would i go about implementing it

Thanks

Mac

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.