You are not logged in.

#1 2015-01-24 21:07:29

tacchinotacchi
Member
Registered: 2014-08-18
Posts: 32

Weird behaviour when emulating osu with pulseaudio installed.

Hi all. I'm having problems while emulating osu! with pulseaudio. I know wine is not compatible with pulseaudio, so I installed wine-multimedia. Now wine has a driver for both pulseaudio and alsa.
The fact is that the game, while playing songs, often stutters for one or two seconds and then continues to work fine (200 fps). This can be a lot more bad than it sounds: being this a rythim game, 2 seconds of lag will make you lose. This doesn't happen while only using alsa, and happens when using pulseaudio.
Without pulse installed and with this code it runs fine:

pcm.dmixer {
  type dmix
  ipc_key 1024
   slave {
    pcm "hw:0,0"
    period_size 32
    buffer_size 640
   }
}

What I though is that wine-multimedia still has latency problems with pulseaudio and wrote this to my /etc/asound.conf

pcm.dmixer {
  type dmix
  ipc_key 1024
   slave {
    pcm "hw:0,0"
    period_size 32
    buffer_size 640
   }
}


pcm.!default {
    @func refer
    name { @func concat 
           strings [ "pcm."
                     { @func getenv
                       vars [ ALSA_DEFAULT_PCM ]
                       default "pulse"
                     }
           ]
         }
}

ctl.!default {
    @func refer
    name { @func concat 
           strings [ "ctl."
                     { @func getenv
                       vars [ ALSA_DEFAULT_CTL
                              ALSA_DEFAULT_PCM
                       ]
                       default "pulse"
                     }
           ]
         }
}

And tried using alsa while having pulse installed.
changed wine driver to winealsa.drv
launched:
ALSA_DEFAULT_PCM="plug:dmixer" osu

and didn't work. Wine was using alsa directly, just like when it worked, but only having pulseaudio running made it lag:
What I got is that the lag is not due to the audio passing through pulse, but it's due to the presence of pulse itself. Even if the audio bypassed it.
Any clue?
Thanks in advance.

EDIT: Now it also lagged with alsa. I'm confused. Maybe it's not an audio problem, but i don't know where to look

Last edited by tacchinotacchi (2015-01-24 21:24:07)

Offline

Board footer

Powered by FluxBB