Noise on Ubuntu 20.04
Moderator: ScummVM Team
Noise on Ubuntu 20.04
Hi to everyone! I am running the latest version of ScummVM on Ubuntu Mate 20.04.3 and there is a high pitch noise in every game I try to play. Any suggestions for a solution?
- Praetorian
- ScummVM Developer
- Posts: 883
- Joined: Tue May 08, 2007 8:54 am
- Location: Greece
- Contact:
Re: Noise on Ubuntu 20.04
Is this with the Snap package of ScummVM?
I had some sound distortion too, when testing yesterday. It's the same issue with Pulse Audio driver conflicts or something like that, which happens with some applications -- but I don't really know the specifics of what's causing it.
Trying with the deb package of ScummVM, I didn't get the sound distortion; however, it could be random.
What usually helps in this situation (other than building ScummVM on your own) is to close other applications that may be using sound (even if they are not playing sound at the moment -- a typical such "offender" is a web browser, eg. Firefox).
- rootfather
- ScummVM Lead
- Posts: 182
- Joined: Tue Mar 31, 2015 11:59 am
- Location: Germany
- Contact:
Re: Noise on Ubuntu 20.04
I think this is a Pulse Audio driver indeed - but I don't know what triggers it (e.g. I can't replicate it right now). Do you have TTS enabled by chance?Praetorian wrote: ↑Sun Oct 17, 2021 9:13 am Is this with the Snap package of ScummVM?
I had some sound distortion too, when testing yesterday. It's the same issue with Pulse Audio driver conflicts or something like that, which happens with some applications -- but I don't really know the specifics of what's causing it.
- Praetorian
- ScummVM Developer
- Posts: 883
- Joined: Tue May 08, 2007 8:54 am
- Location: Greece
- Contact:
Re: Noise on Ubuntu 20.04
I wasn't using TTS, no. For me the issue went away when I closed Firefox (which was running and had a few tabs open). That PC is also running Skype and Viber on launch, but I'm quite sure I had those closed before I ran ScummVM.rootfather wrote: ↑Sun Oct 17, 2021 9:20 am I think this is a Pulse Audio driver indeed - but I don't know what triggers it (e.g. I can't replicate it right now). Do you have TTS enabled by chance?
Re: Noise on Ubuntu 20.04
No I have no other programs running and I am using the .deb package. I suspect the sdl version that comes with Ubuntu 20.04. I will try to use a newer version.
Re: Noise on Ubuntu 20.04
I compiled from source but the problem remains. When I run from terminal I get the following error: "sdl mixer output buffer size 512 differs from desired 1024".
- rootfather
- ScummVM Lead
- Posts: 182
- Joined: Tue Mar 31, 2015 11:59 am
- Location: Germany
- Contact:
Re: Noise on Ubuntu 20.04
This shouldn't be related to this issue (IIRC, this message almost _always_ appears on Linux system, but I've never seen a negative impact on this). The only downside this might have is a slight delay of just a few milliseconds, in case it's even noticable.
Have you compiled just ScummVM from source or also with an updates SDL2? Could you quickly check if the ScummVM snap package has the same issue? That one is built with SDL2 and libs from Ubuntu 18.04, so this would be a nice reference point.
Re: Noise on Ubuntu 20.04
Merry Christmas to all.
I have tried various things to solve the problem (upgraded to Ubuntu 21.10 and used the snap package), but the problem remained.
Last night I compiled it again from source with these arguments: ./configure --enable-all-engines --backend=sdl --enable-release --disable-sdlnet --disable-tts and the noise is gone.
I suspect it is the tts feature. I'II compile it again when I have time with only that parameter and see.
I hope someone will find this useful.
I wish to everyone a Happy New Year!
I have tried various things to solve the problem (upgraded to Ubuntu 21.10 and used the snap package), but the problem remained.
Last night I compiled it again from source with these arguments: ./configure --enable-all-engines --backend=sdl --enable-release --disable-sdlnet --disable-tts and the noise is gone.
I suspect it is the tts feature. I'II compile it again when I have time with only that parameter and see.
I hope someone will find this useful.
I wish to everyone a Happy New Year!