PDA

View Full Version : ZSNES + PulseAudio | I'm confused


brodae
June 29th, 2008, 04:55 PM
As the title suggests, I'm confused as to how to run ZSNES while using Pulse Audio. I would appreciate some help.

- B

Grishka
June 29th, 2008, 05:28 PM
zsnes -ad pulse

brodae
June 29th, 2008, 05:58 PM
It showed up as a stream in the pulseaudio gui, but I'm still not hearing anything. Do I need to close other streams? What should I do?

acoustibop
June 29th, 2008, 07:23 PM
Do you particularly need to run ZSNES with PulseAudio, brodae?

If not, dozsnes -?to get a list of possible drivers for ZSNES, then tryzsnes -ad <your selected driver>for each one, replacing <your selected driver> with the one you want to try each time. When you've found one that works well for you, stick with that - most people seem to find the SDL driver is favourite.

diablo75
June 29th, 2008, 07:27 PM
I think the command I used to fix it was this:

zsnes -ad sdl

You only need to enter that into terminal once. Every execution from the Applications>Games menu from there on should work fine (it did for me, anyway). Let us know what works for you.

A bug report found here (https://bugs.launchpad.net/ubuntu/+source/zsnes/+bug/188567) has more info about this. One other solution that has worked for some (say, if the above command works, but produces crackly sound) is to do this also:

sudo apt-get install libsdl1.2debian-oss
And then:
pasuspender -- zsnes -ad auto

brodae
June 29th, 2008, 08:16 PM
The only that worked, had garbled sound, and it was libsdl1.2debian-pulseaudio. I tried all of the others and none of them worked. It was garbled and kinda "spikey" sounding, if you will.

acoustibop
June 30th, 2008, 03:05 AM
Try installing libsdl1.2debian-all, brodae, then try the ZSNES drivers again.

You may find installing it removes some drivers, but don't worry - these will be reinstated as part of the new package.

brodae
June 30th, 2008, 02:32 PM
I tried that, and got no results. This time, nothing worked.

dfreer
June 30th, 2008, 07:55 PM
Try the patched version of zsnes 1.51:
http://board.zsnes.com/phpBB2/viewtopic.php?p=168952
http://board.zsnes.com/phpBB2/viewtopic.php?p=168959

brodae
July 1st, 2008, 10:08 PM
I can't find the patched version in those articles. Where is it?

FranMichaels
July 1st, 2008, 10:32 PM
I can't find the patched version in those articles. Where is it?

http://board.zsnes.com/phpBB2/viewtopic.php?p=168959

First post in that thread. Pick one that is for your system, the bottom src tarball, you'd need to build yourself.

I've been running the last svn release of zsnes. You can look at the links in my sig to see if they help you.

Anyway, my hopes are for a public source release of the newer version soon (I like cutting edge / bleeding software) That and someone offer a GTK interface for the next version, not just a QT one (although no biggie, but still...)

dfreer
July 2nd, 2008, 03:20 AM
I can't find the patched version in those articles. Where is it?

Indeed. Just try one of the binaries first like the above post says, unless you are comfortable with compiling zsnes. Make sure to grab the one for your processor (example, if you have an Intel Core 2 Duo, you'll probably want the core2 version).

When you install it, I'd recommend trying the following (although you don't have to, this is more to troubleshoot things):
(1). Either rename or delete your ~/.zsnes/ folder, which will delete any previous configuration files (if you delete this folder, BACKUP your saved games first!).
(2). Make sure any old versions are gone and install the new one (just decompress the zsnes*.tar.gz file).
(3). Run zsnes through the terminal to pickup any error messages.
(4). Make sure libao is installed (sudo apt-get install libao2), and try running zsnes like so:
zsnes -ad oss If libao doesn't work for you, then try the SDL driver (I happen to think SDL doesn't sound as good, but whatever).

blueturtl
July 2nd, 2008, 10:01 AM
For me editing the ~/.zsnes/zsnesl.cfg file helped, all I had to do was change the following lines:

; However "auto" (to automatically pick best one), and "sdl" should
; always be available.
libAoDriver="auto"

to

; However "auto" (to automatically pick best one), and "sdl" should
; always be available.
libAoDriver="sdl"

That fixed it for me. Stuttering audio can be fixed, it's a problem with some cheap audio hardware (typically laptop integrated, or AC97 etc.)

The solution is in this thread:
http://ubuntuforums.org/showthread.php?t=789578

See part 3: stuttering audio fix