Author Topic: Audio & Video Sync?!?  (Read 2399 times)

whitebear

  • Posts: 659
  • Turrets: +35/-20
Audio & Video Sync?!?
« on: June 09, 2009, 10:38:05 pm »
I managed to get video file rolling and the audio file for it rolling too. (although I had to split it in five parts to get it fit in the tremulous processing memory).

Now I have a problem. I can't get the audio and the video sync.
I assume that texture rendering is completely client side so there for the rendering of a video starts when player joins the game.
I also assume the trigger_always that calls my sound file is processed even without having a client connect yet (even in local games)
So is there a way to either have the sound start for client when he connects (or some sort of client side trigger) or is there a way to stop/start the video shader render until client triggers it. (like a button etc.)

I would be grateful for any solution.

==Troy==

  • Posts: 440
  • Turrets: +65/-67
Re: Audio & Video Sync?!?
« Reply #1 on: June 10, 2009, 01:08:24 pm »
Tbh, this is really nearlly impossible from what I know. What you can try to do is :

Make a trigger_multiple which specs can trigger, which triggers the sound (with flag set to be personal for the player)
Make trigger_teleport (!WARNING, its important to first make multiple trigger the teleport, so that teleport is lower in .map file) that will teleport the spec FROM that place
Put player intermission into the middle of that.

Once player has entered the game, he will trigger the sound as the spec, and will also start animation, there will be slight de-sync still though.

And as a side feature of this design, the player himself is going the be the source of the sound iirc.