I read on the forums somewhere that the audio in love is handled by a separate thread. Is is possible to change this? I'm working on a game which relies on tight synchronisation of audio and gameplay, and occasionally they go out of sync by a minor (but noticeable) amount.
Cheers,
P
Keep audio in sync / move to main thread
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 11
- Joined: Fri May 17, 2013 7:40 am
Re: Keep audio in sync / move to main thread
I guess you're already trying with accumulating dt? Alternatively you could try using love.timer.getMicroTime to judge how far through the track you should be (not sure if it would make any difference). You might do best using Source:tell to find the current position of the audio and synchronise the game state to that ever frame.
Who is online
Users browsing this forum: Google [Bot] and 6 guests