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
sounds sped up (higher pitch) on linux #628
Comments
@AliceLR ? |
This sounds like a bug in xmp-cli's ALSA driver to me. I can confirm I've had no issues like this with WinMM or PulseAudio, anyway. I will try to test and verify tomorrow. |
I haven't been able to reproduce this but I notice the ALSA driver is ignoring a lot of function return values. |
@AliceLR I think my list of steps to reproduce the issue missed having /etc/asound.conf with the specific settings I had (which could be written wrong, but like I said other programs don't seem to mind), edited the steps, also added a cleaner workaround I found today. When I don't use /etc/asound.conf everything works OK (except for the stereo channels being in wrong order but that's a hardware issue). I'll see if I can find out more. |
Steps to reproduce
pulseaudio
xmp DigSh.umx
Expected behaviour
Sounds the same as if playing it via
mpv DigSh.umx
(it uses libmodplug, no immediately apparent problem) or running the game the module is from and listening, or listening to it on youtubeActual behaviour
It sounds sped up (too high pitch and too fast). I tried it on other umx files and other modules and it's doing the same thing.
Tried
Edit:
After more testing I realised that if I delete /etc/asound.conf ...which has the following content:
...when that file is removed then
xmp
works as expected!I use that config file because the stereo channels seem to be the other way around on my sound card for whatever reason and everything seems to work well enough with it (except
xmp
). I understand now that the problem likely is with my setup, apologies.I've noticed that when I get rid of that config file
xmp
sets the mixer to 44100 Hz as expected (rather than always to 48000 as before), the -f switch also works as expected now with that config gone.Only thing is though that every program I use that produces sound seems to work OK even if I use that config file. I'll troubleshoot this further. Again sorry if this goes too far beyond the scope of the project.
Workarounds and possible solutions
xmp DigSh.umx -c|aplay -Dplug:default -f cd -q
, it works almost perfect - correct pitch and speed (the "cd" format is 44100 Hz), except that there's about a second of delay when seeking or changing songs/subsongsxmp
right before startingxmp
the problem is avoided while programs already started with asound.conf work as they did before. In other words "hotswapping" the config before starting the program - incredibly ugly but it worksHOME=/tmp/fakehome
specifically for one application and to create/tmp/fakehome/.asoundrc
, it's the per-user asound.confThe text was updated successfully, but these errors were encountered: