Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sound effects keep popping and scratching on ppsspp and linux. #275

Open
amano-kenji opened this issue Mar 22, 2023 · 20 comments
Open

Sound effects keep popping and scratching on ppsspp and linux. #275

amano-kenji opened this issue Mar 22, 2023 · 20 comments

Comments

@amano-kenji
Copy link

amano-kenji commented Mar 22, 2023

Description

When sound effects start and end, I hear popping. I have to minimize popping by reducing system volume.
Reducing OpenBOR volume doesn't decrease popping noise.

Debugging

Reproduce

  1. Launch any game
  2. All sound effects pop and scratch. Reducing OpenBOR sound volume makes pops more conspicuous.

Expected behavior

Audio should be smooth.

Version

Additional context

I use ALSA dmix.

ALSA sampling rate: 48000hz
rate converter: samplerate
ALSA sampling format: S32_LE
channels: 2

@DCurrent
Copy link
Owner

PSP support is dropped, upcoming versions won't compile a PSP build at all. @msmalik681 can you reproduce this issue on Linux?

@amano-kenji
Copy link
Author

amano-kenji commented Mar 24, 2023

Is linux supported? Yesterday, I tried and failed to build it on gentoo linux. Lots of compiler errors.

I want to make a gentoo linux package for OpenBOR, but there is no the build instruction apart from build.sh.

I wish the build was done by meson. Meson has a lot of inflexible assumptions, but it is easy for package maintainers to use.

@amano-kenji
Copy link
Author

By the way, I'm going to configure pipewire which emulates ALSA and pulseaudio.

@msmalik681
Copy link
Collaborator

@amano-kenji I have tested both platforms and they work as expected is there a particular game this is happening with or does it happen with all games ?

@amano-kenji
Copy link
Author

So far, I have tested

  • Rhythm of Destruction 2 - Street Fighter Edition
  • World Heroes Supreme Justice Extra

@amano-kenji
Copy link
Author

amano-kenji commented Mar 24, 2023

I just tested Streets of Rage 2X. It doesn't give me pops and scratches. It's weird.

@msmalik681
Copy link
Collaborator

Just tested "Rhythm of Destruction 2 - Street Fighter Edition" using latest stable appimage on linux mint 21 and no sound issues this could be a problem with your audio drivers.

If you have a sound card and a gpu that supports audio over hdmi maybe test both.

@amano-kenji
Copy link
Author

amano-kenji commented Mar 25, 2023

The system sound volume should be 100%. Reduce SFX volume and music volume to 0, and then increase them gradually.

When SFX volume and music volume are near 0, I hear pops before and after sound effects occur.

Test World Heroes Supreme Justice Extra, too.

@amano-kenji
Copy link
Author

I tested onboard sound card and USB DAC with ALSA. With or without ALSA dmix, I hear pops.

Pops become louder if in-game SFX volume is near 0.

I haven't tested pulseaudio or pipewire, yet.

@amano-kenji
Copy link
Author

I guess the root cause is internal audio mixing is broken.

@aqxa1
Copy link

aqxa1 commented Apr 10, 2023

I tried Golden Axe Returns with the Windows version run with Wine, and it looks to be a regression. With the bundled GAME.exe, it works fine. If you use the included alpha 4.0 GAME.exe, the issue appears. I also compiled the git Linux version (after disabling some fatal warnings) and the issue persists.

@msmalik681
Copy link
Collaborator

@aqxa1 what distro are you using ?

@aqxa1
Copy link

aqxa1 commented Apr 10, 2023

Gentoo as well. I needed to add to CFLAGS:

-Wno-address -Wno-stringop-overflow -Wno-stringop-truncation -Wno-format-overflow

Something like this as a full command:

  CFLAGS="-march=native -O2 pipe -Wno-address -Wno-stringop-overflow -Wno-stringop-truncation -Wno-format-overflow" ./build.sh 4

@msmalik681
Copy link
Collaborator

I think i need to test a linux distro running alsa audio as mine uses pulseaudio i will test and get back to you.

@aqxa1
Copy link

aqxa1 commented Apr 10, 2023

I'm using Pipewire (through pipewire-pulse emulation). The issue will be reproduced with native Pulseaudio as well I suspect.

@amano-kenji
Copy link
Author

I just tested openbor with pipewire-pulse. The issue still persists with pipewire-pulse.

Even disabling USB device suspend in wireplumber doesn't fix this issue.

I think it's internal mixing issue.

@dobbs68
Copy link

dobbs68 commented Sep 8, 2023

Hello. I have the same problem with OPENBOR using WINDOWS 7 32 bit. I have tested many versions. In most games even putting BGM and sound effect at ZERO theres still a clicking-pops-noise that is extremely annoying. Sadly i havent found any solution or workaround.

@nickxcom
Copy link

Can confirm the popping sound effects occur on the most recent Linux AppImage build, on steam deck. Interestingly, I have run into popping sound effects much like this on various Doom source ports on Linux and I'm not sure how or if they got fixed

@amano-kenji
Copy link
Author

amano-kenji commented Feb 29, 2024

If mp3 files are used as sound effects, then libmad decoder can be a culprit. I don't know whether openbor uses libmad decoder.

libmad has been unmaintained for a long time.

mpg123 decoder is better maintained, and its pop noises are far quieter. It is quiet enough that I can't hear pops in most cases unless I wear headphones and focus.

@msmalik681
Copy link
Collaborator

Sound effects are wav files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants