Linux, Sound is broken on game testing and on the deployed executable.


Bug explanation:


On Linux, sound is broken on game testing and on deployed linux executable.

This happens after upgrading to 1.6, there is some problem in audio.

The audio is laggy at some moments and in some moments runs to fast, there are some strange crackling and echoing effects.

This is noticeable after making a new game and starting it, on the title screen with the background music.
.
No plugins in use, plain new project.

The game runs at 60fps, no lag on graphics.

Playing from the editor works fine, sound fails only on
play-testing and on the executable.

Tested other sound applications, everyting works fine, youtube videos, steam games, mp3 playing...

Switching from webgl to canvas has no effect.

Running a game deployed with 1.5 works, so i think its not related to some lib/driver upgrade on my system.

Steps to reproduce:
Upgrade to 1.6
File>New>Ok>PlayTest


System Hardware:
Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
GPU: GeForce GTX 660 Ti (GPU 0)
32GB RAM

System Software:
Arch Linux with kernel 4.15.5-1-ARCH #1 SMP PREEMPT Thu Feb x86_64
PulseAudio 11.1
Propietary nvidia driver 390.25
System is up-to-date

Console output:
No errors, only the pixijs banner,
PixiJS 4.5.4 - ✰ WebGL ✰ http://www.pixijs.com/ ♥♥♥

Project attachment:

Its a plain new project only, removed extra graphics to go below the 90mb limit.

https://www.dropbox.com/s/ko7ss2qiyclsys3/SounBroken.zip?dl=0
Workarround that fixed the issue for me:

Edit /etc/pulse/daemon.conf (as root)

Look for this line:
; default-fragment-size-msec = 25
Add a uncomented line setting that value to 5:
; default-fragment-size-msec = 25
default-fragment-size-msec = 5

Restart pulseaudio.
pulseaudio --kill

Anyway, sound worked without messing with pulseaudio on previous versions of rpg-maker mv.
It's a 1.6 related issue.

Original thread: https://forums.rpgmakerweb.com/threads/linux-sound-is-broken-on-game-testing-and-on-the-deployed-executable.91824/