MaartenBaert / ssr

SimpleScreenRecorder, a screen recorder for Linux
http://www.maartenbaert.be/simplescreenrecorder/
GNU General Public License v3.0
2.54k stars 289 forks source link

Unable to record audio properly playing games with the AGS Linux runtime. #304

Open Sslaxx opened 9 years ago

Sslaxx commented 9 years ago

Ubuntu 14.10, SSR version 0.3.3 64-bit.

AGS - Adventure Game Studio - http://www.adventuregamestudio.co.uk/ - using the runtime executable built from source.

I suspect this is actually an issue with Allegro (which AGS uses) rather than AGS. I've found other programs using Allegro have also had problems with audio playback on Linux in the past.

During recording, the command line reports "[Synchronizer::ReadAudioSamples] Warning: Too many audio samples, dropping samples to keep the audio in sync with the video." repeatedly, and the audio is skipping due to the dropped samples. It also appears to be slowing down execution of the games.

MaartenBaert commented 9 years ago

The 'too many samples' warning is a symptom of bugs in the sound system that you're using. Some software seems to be more likely to trigger these bugs. Are you using PulseAudio? If you are, consider giving JACK a try. The ALSA-to-JACK bridge isn't perfect, but JACK itself is far more reliable than PulseAudio.