i have an application in which the listener is located at the head of a train (called simulated train) in the loco,
and cross other trains (called controled trains). There are 3d sounds attached on each train (engine sound, …).
My problem is that, according to the simulated train speed (and therefore the listener speed), when i cross
controled trains, i have a time gap between the 3D displayed and the sounds. I mean i hear the sounds of a
controled train few seconds before i cross it in the 3D animation.
This problem does not exist when simulated train speed is 40 m/s for example. It appears at 70 m/s, and
increase with the speed.
This problem is also present with the 3D reverb. When the simulated train speed exceeds 60 m/s, I hear the reverb
shortly before entering in the sphere, and the reverb stops while I am still in the sphere.
The problem does not seem to come from the 3D animation engine since the refresh frequency is very good.
Do you think it could comes from Fmod ?? or do i make an error ??
- gothmog asked 8 years ago
Maybe your load the sound when you need em?
Maybe your sound is streamed which could be the cause for the delay?
Maybe you update the sound position at the wrong spot? Like it updates using the old position of the train then you set the train to a new position? So the sound is always behind the train’s actual position. I think that may be your case here since the faster it goes the more you would notice.
- icuurd12b42 answered 8 years ago
i have not specify it, but i use events and not sounds.
And these events play from the beginning of the simulation to the end.
So, i don’t think there are problems with the loading.
And i don’t think it comes from the sound position update since the problem only depends on the
speed of the simulated train. I mean, if the simulated train is not running, and a controlled train
(with a very high speed) crosses it, there is no problem.
And i hear the sounds of controlled trains shortly before i cross them (not after).
That is why i thought it cames from the update of the listener. Or maybe the 3D animation engine is not
updating as quickly as Fmod. Or if you have any others ideas ??
- gothmog answered 8 years ago
Please login first to submit.