Results 1 to 4 of 4
  1. #1
    EmuTalk Member
    Join Date
    Jan 2006
    Posts
    7

    Exclamation pops crackles & lag...

    using both the source code & the binary for linux i suffer sound problems using both the mupen64 & jttl's sound plugins. during some parts of a game the audio is just fine, but others it lags & has nasty pops & crackles. an example of this is in super mario64, it seems to lag & crackle a bit during the press start menu, but not again until i'm in an actual level.
    my other sdl applications & games, for instance zsnes & quake2, are not having these issues with pops, crackles, & lag, so something with my soundcard & or system configurations can be immeadately ruled out imo.
    i've played around with low_buffer_load_level in jttl_audio.conf & it just goes from bad to worse.
    is there a functional alsa plugin for mupen64 0.5 linux or some other alternative to the sdl plugins?



    thanks in advance for any help or suggestions,
    play0r


    • Advertising

      advertising
      EmuTalk.net
      has no influence
      on the ads that
      are displayed
        
       

  2. #2
    EmuTalk Member
    Join Date
    Mar 2004
    Posts
    6
    I'm using JTTL too, and I have set it up so I only get the occasional skip and no crackling.I've only used it for Zelda OOT though, so I don't know how well these settings will work for other games:
    PRIMARY_BUFFER_SIZE 1048576
    LOW_BUFFER_LOAD_LEVEL 49152
    HIGH_BUFFER_LOAD_LEVEL 1048576
    SECONDARY_BUFFER_SIZE 512

    Raising the PRIMARY/LOW/HIGH settings seems to fix crackly audio but causes more skipping.Setting SECONDARY to a lower value fixes the skipping.
    These settings might cause extra latency in the audio but it works well enough for me.You might need to raise the SECONDARY to 1024 if 512 causes problems.

  3. #3
    EmuTalk Member JttL's Avatar
    Join Date
    May 2003
    Location
    Finland
    Posts
    27
    Let me explain a bit. Buffer size is value in bytes used as primary buffer to store data from emulator until it is copied to secondary buffer to be played out.

    Crackling is caused by incorrect high buffer level value. It should be much less than buffer size. If it's set to be equal to buffer size then audio chunks from emulator that can't fit to buffer are dropped. And as said that can be heard as crackling. Skipping is heard when secondary buffer ( that's sdl's own alsa buffer) runs out of data and plugin don't have anything to fill it up with. That's mostly caused by your too slow machine. Sometimes it helps to raise secondary buffer size.

    Actually I think that you should try to set high buffer level very close to low buffer level. Setting it lower than low buffer level will probably cause something nasty and unexpected...

    Actually I'm surprised that someone actually still uses my plug-in. It just got to be damn good .

    And for play0r: SDL usually uses directly alsa but just wraps it to cross-platform library. So technically plug-in would build and work on windows or mac.

  4. #4
    EmuTalk Member
    Join Date
    Jul 2007
    Posts
    131
    Quote Originally Posted by JttL View Post
    Let me explain a bit. Buffer size is value in bytes used as primary buffer to store data from emulator until it is copied to secondary buffer to be played out.

    Crackling is caused by incorrect high buffer level value. It should be much less than buffer size. If it's set to be equal to buffer size then audio chunks from emulator that can't fit to buffer are dropped. And as said that can be heard as crackling. Skipping is heard when secondary buffer ( that's sdl's own alsa buffer) runs out of data and plugin don't have anything to fill it up with. That's mostly caused by your too slow machine. Sometimes it helps to raise secondary buffer size.

    Actually I think that you should try to set high buffer level very close to low buffer level. Setting it lower than low buffer level will probably cause something nasty and unexpected...
    Interesting explanation...I might try to fiddle with it as well.
    Actually I'm surprised that someone actually still uses my plug-in. It just got to be damn good .
    Still uses your plugin? Your plugin is the only plugin that works for me. The other plugin (not counting the dummy dll in the sound settings) called "Mupen64 audio plugin" does not produce any sounds at all. And there don't seem to be any other workable plugins available for Linux.

Similar Threads

  1. Error message pops up every several seconds!!
    By ragnar5ok in forum Project64
    Replies: 3
    Last Post: November 13th, 2006, 07:20
  2. netplay: lag when pressing button
    By BlackWolf in forum Netplay
    Replies: 1
    Last Post: November 11th, 2004, 00:30
  3. Extreme Frame lag after moving mouse
    By XxCronoxX in forum 1964
    Replies: 11
    Last Post: September 25th, 2004, 17:42
  4. Busted
    By Doomulation in forum IRC Quotes
    Replies: 14
    Last Post: January 21st, 2003, 00:46
  5. Perfect Dark Multiplayer, MASSIVE Lag!!! Please Help!!
    By Chow Yun Fat in forum Project64
    Replies: 1
    Last Post: February 22nd, 2002, 03:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •