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;
result = system->createDSPByType(FMOD_DSP_TYPE_OSCILLATOR, &dsp);
result = dsp->setParameters(FMOD_DSP_OSCILLATOR_RATE, 440.0f);
result = system->playDSP(FMOD_CHANNEL_FREE, dsp, true, &channel);
//for white noise
result = dsp->setParameter( FMOD_DSP_OSCILLATOR_TYPE, 5);
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.
- franco.amato asked 11 years ago
So what can I do? The channel is attached to the dsp and updated with the global position and velocity.
Thanx in advance.
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]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.
Please login first to submit.