0
0

Hi to all,
I have a 3d scene with some objects playing wav files and others generating tones (for example white noise and others).
Unfortunately the 3d effects doesn’t work with the objects emitting tone, instead it works well with the objects that play wav files.
Here I write the main code for the objects that emit tone:

costructor of my object (myObj):
channel = 0;
dsp = 0;

[code:bikqky64]myObj::init()
{
FMOD_RESULT result;
result = system->createDSPByType(FMOD_DSP_TYPE_OSCILLATOR, &dsp);
ERRCHECK(result);

result = dsp->setParameters(FMOD_DSP_OSCILLATOR_RATE, 440.0f);
ERRCHECK(result);
}[/code:bikqky64]

and

[code:bikqky64]myObj::startPlay()
{
init();
FMOD_RESULT result;
result = system->playDSP(FMOD_CHANNEL_FREE, dsp, true, &channel);
channel->setVolume(0.125f);

//for white noise
result = dsp->setParameter( FMOD_DSP_OSCILLATOR_TYPE, 5);
ERRCHECK(result);

if(channel)
channel->setPaused(false);
}[/code:bikqky64]

and I call the:

[code:bikqky64]system->updateChannel(channel, pos, velocity) [/code:bikqky64]

every often with the position and velocity but seems not working.
With the object playing wav file I have no problem.
Any idea?
Regards,
Franco

  • You must to post comments
0
0

Confirmed with my test bench…

  • You must to post comments
0
0

[quote="icuurd12b42":2mekoyn1]Confirmed with my test bench…[/quote:2mekoyn1]

So what can I do? The channel is attached to the dsp and updated with the global position and velocity.
I’m a little confused :( .
Thanx in advance.
Franco

  • You must to post comments
0
0

[quote="franco.amato":fb526fa2]
So what can I do? The channel is attached to the dsp and updated with the global position and velocity.
Thanx in advance.
Franco[/quote:fb526fa2]

Right now, they only thing to do is wait and see… If it’s a bug that needs fixing in the next release or if it’s design that way on purpose.

The right people will likely tell you soon.

  • You must to post comments
0
0

[quote:ts606xaz]Right now, they only thing to do is wait and see… If it’s a bug that needs fixing in the next release or if it’s design that way on purpose.

The right people will likely tell you soon.[/quote:ts606xaz]

Hi Tony Lloyd told to me to set the channel with channel->setmode and give the 3d property.
I try immediately.
Franco

  • You must to post comments
0
0

Curious, did you solve the problem franco?

  • You must to post comments
0
0

Hi
[quote="snorr":n99wb5zv]Curious, did you solve the problem franco?[/quote:n99wb5zv]

Yes I solved the problem.
Thank you very much to all.
Regards,
Franco

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.