Audio delay with mupen64plus 2.5 on Ubuntu

461 views
Skip to first unread message

rmma...@gmail.com

unread,
Sep 1, 2016, 8:48:00 PM9/1/16
to mupen64plus
Hello everyone!

I'm having audio delays of almost 1 second with Mupen64plus on Ubuntu 15.10. I tried with Rice, Glide64 and Glide64mk2; tried compiling it myself, installing the version from the Ubuntu repositories and also the pre-compiled binaries from the website. Also tried with both the integrated Intel video card and the dedicated Geforce 920M. In all situations the delay is (as far as I can tell) exactly the same. The games run at full speed with no other noticeable problem.

Processor: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
RAM: 8GB

I'm currently using the libretro core for Mupen64plus 2.0 and it works perfectly, no audio delay at all and full speed. But I want to migrate to the standalone version, if I can fix this problem.

Can anyone help me? I found nothing interesting by searching the group (or google in general).

Thank you!


Richard Goedeken

unread,
Sep 1, 2016, 9:12:49 PM9/1/16
to mupen...@googlegroups.com
Can you look at the [Audio-SDL] settings in your ~/.config/mupen64plus/mupen64plus.cfg file?  I have the following parameters:

# Size of primary buffer in output samples. This is where audio is loaded after it's extracted from n64's memory.
PRIMARY_BUFFER_SIZE = 16384
# Fullness level target for Primary audio buffer, in equivalent output samples
PRIMARY_BUFFER_TARGET = 2048
# Size of secondary buffer in output samples. This is SDL's hardware buffer.
SECONDARY_BUFFER_SIZE = 1024

I believe that the audio delay will be proportional to the value of the PRIMARY_BUFFER_TARGET setting.

Another thing that you can try is to give the "--nospeedlimit" option on the command line.  Let me know if that makes a difference.

Richard
--
You received this message because you are subscribed to the Google Groups "mupen64plus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mupen64plus...@googlegroups.com.
To post to this group, send email to mupen...@googlegroups.com.
Visit this group at https://groups.google.com/group/mupen64plus.
For more options, visit https://groups.google.com/d/optout.

Alessandro Porcelli

unread,
Sep 2, 2016, 7:16:39 PM9/2/16
to mupen64plus
I can confirm that reducing that value fixed the delay I experienced in Windows 10.
Reply all
Reply to author
Forward
0 new messages