Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: SilverSpook on Mon 22/06/2015 10:17:43

Title: Audio skips during room change
Post by: SilverSpook on Mon 22/06/2015 10:17:43
Having a weird problem here where I have a room change and the audio suddenly skips.  The music rewinds about half a second so it sounds like it's stuttering.

Just a note: I'm using "SetNextScreenTransition(eTransitionInstant)", if that makes a difference.
Title: Re: Audio skips during room change
Post by: Crimson Wizard on Mon 22/06/2015 10:36:03
This was always in AGS... this is because audio playing on same program thread as the rest of the game, it stutters when data is loaded.

Since 3.3.0 there is an option to play it on separate thread, but its very raw, "unofficial" feature.
It only works safe on Windows, but often crashes on Linux systems (I was planning to address this problem for a while now).
Also, there is no synchronization mechanism yet, so it does not work well with Voice speech lip sync (Pamela / Papagayo) and when you need particular notes hit at particular events in game precisely.

To enable this option add following line into acsetup.cfg:
Code (text) Select

[sound]
threaded=1
Title: Re: Audio skips during room change
Post by: SilverSpook on Wed 24/06/2015 09:17:27
Huh, thanks Crimson Wizard.

So if I'm having problems with the music skipping and I might eventually put this game on mobile devices, would you recommend I just have different music in different rooms?
Title: Re: Audio skips during room change
Post by: Crimson Wizard on Wed 24/06/2015 09:28:26
I do not know what to recommend.

I can only mention that you may change this "threaded" option when distributing for other platforms.
Title: Compiled Exe - music plays tone twice when changing room
Post by: KentuckyFries on Tue 07/07/2015 14:27:14
Hello Ags-Users/-Admins etc.,

I was searching in this forum for the right answer but there were too many threads, so I just made this account in hope you can help me fix my problem.

Here is my problem:
When I play the game in AGS it works fluently but when i compile it to .exe , the music gets stuck for less then a secound while changing a room with the same background music.

How can I fix it?
Title: Re: Compiled Exe - music plays tone twice when changing room
Post by: Snarky on Tue 07/07/2015 14:37:02
There were too many threads, so you thought you'd start one more? No, I'll just merge this with the last time we had this question, all of two weeks ago.
Title: Re: Audio skips during room change
Post by: selmiak on Tue 07/07/2015 19:28:04
There are too many helpful replies, so I'll just post a  :-D
Title: Re: Audio skips during room change
Post by: Crimson Wizard on Tue 07/07/2015 20:02:36
Quote from: selmiak on Tue 07/07/2015 19:28:04
There are too many helpful replies, so I'll just post a  :-D
WTF is this for??