Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Glenjamin on Mon 02/07/2018 17:47:34

Title: Prevent audio skipping when changing rooms[solved]
Post by: Glenjamin on Mon 02/07/2018 17:47:34
Whenever an audio track is playing whilst the player is changing rooms, the audio replays like a broken record until the next room is loaded.

Is there any way to stop this so the track continues without interruption?

Title: Re: Prevent audio skipping when changing rooms
Post by: Crimson Wizard on Mon 02/07/2018 18:24:47
Short answer is "no", because AGS is terrible.

There is a unofficial method to run audio on a separate thread. To do this, open acsetup.cfg by hand and put this:
Quote
[sound]
threaded=1

But this is not officially supported, and may cause random problems. For example, it is only working on Windows more or less stable, but known to cause crashes on Linux and mobile ports.

Also, with this you can no longer rely on synchronizing music with the game events and video playback: precise timing will not be possible, music may sometimes run slightly faster than the rest of the game.


PS. Only scripting solution that comes to mind is to turn volume down and back up when you change rooms.
Title: Re: Prevent audio skipping when changing rooms[solved]
Post by: morganw on Mon 02/07/2018 20:16:31
If you use a Wav file instead of OGG or MP3, it shouldn't stutter.