Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Gaming & Leisure
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Gaming & Leisure
A section for users who strive to play the latest games on linux.

 
Thread Tools Display Modes
Old July 6th, 2008   #1
dfreer
Chocolate Ubuntu Mocha Blend
 
dfreer's Avatar
 
Join Date: Jan 2006
Beans: 1,854
Ubuntu 7.10 Gutsy Gibbon
For Users having sound problems with ZSNES and Hardy

Hi everyone,

So after a long period of little/no activity, I started looking into the ZSNES Hardy scene. There's been many, many reports in the forums about users not being able to get sound working at all (or scratchy sound), and several solutions have been posted but it seems people still are confused.

So I did some tests of my own, using a default install of Ubuntu x86 Hardy (actually it's the live CD, same thing). I used Chrono Trigger and Tales of Phantasia to test the "scratchiness" of the sound. Let's start with the "official" package provided in the Universe Repository:

Code:
sudo apt-get install zsnes
Default Install Settings (-ad auto/alsa, 32,000 Hz): Absolutely no sound.
OSS (-ad oss, 32,000 Hz): Absolutely no sound.
SDL (-ad sdl, 32,000 Hz): Constant Buzzing in the background, but sound.
SDL (-ad sdl, 48,000 Hz): Great sound.
SDL with libsdl1.2debian-oss (-ad sdl, 32,000 Hz): Decent sound, very faint slowdowns/hiccups.
SDL with libsdl1.2debian-oss (-ad sdl, 48,000 Hz): Decent sound, but stutters a lot.
SDL with libsdl1.2debian-all (-ad sdl, 32,000 Hz): Constant buzzing, but sound.
SDL with libsdl1.2debian-all (-ad sdl, 48,000 Hz): Great sound.

Please note: You can change the sound driver two ways, either by passing the argument "-ad <sound driver>" once, or by changing the configuration file located at ~/.zsnes/zsnesl.cfg.

If you pass the argument to the program, say like this:
Code:
zsnes -ad sdl
SDL gets written to the ~/.zsnes/zsnesl.cfg. So there's no reason to pass "-ad <sound driver>" EVERY time you run zsnes, just the once to change it!

The default is "-ad auto", which automatically determines which one to use. On my system it always picks "alsa".




Ok, now for further tests. This is using Nach's patched version of ZSNES 1.51 that fixes zsnes's broken sound in Hardy. You can download the source code and pre-compiled binaries for this version 1.51b here:
http://board.zsnes.com/phpBB2/viewtopic.php?p=168959

I'm going to use the core2 binary, as I have an Intel Core 2 Duo processor.

Default Install Settings (-ad auto/alsa, 32,000 Hz): Great Sound.
Default Install Settings (-ad auto/alsa, 48,000 Hz): Great Sound.
OSS (-ad oss, 32,000 Hz): Great Sound.
OSS (-ad oss, 48,000 Hz): Great Sound.
SDL (-ad sdl, 32,000 Hz): Constant Buzzing in the background, but sound.
SDL (-ad sdl, 48,000 Hz): Great Sound.
SDL with libsdl1.2debian-oss (-ad sdl, 32,000 Hz): Decent sound, very faint slowdowns/hiccups.
SDL with libsdl1.2debian-oss (-ad sdl, 48,000 Hz): Decent sound, but stutters a lot.
SDL with libsdl1.2debian-all (-ad sdl, 32,000 Hz): Constant buzzing, but sound.
SDL with libsdl1.2debian-all (-ad sdl, 48,000 Hz): Great sound.

Hopefully this helps people with their sound problems, whichever route they choose (use 1.51 or 1.51b). And hopefully it stops some of the confusion people have running commands wildly without really knowing what they are doing.


*Note: All of these test were performed with zsnes in a 512x448 window (whatever the default window size is), running on my Intel Core 2 Duo @2.00 Ghz processor with my Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (snd_hda_intel). Video Card is Nvidia GeForce Go 7400 (restricted drivers NOT installed).
You may experience additional sound stutters/errors simply if you are not running the game at full FPS, or have problems with your sound card not related to ZSNES.
dfreer is offline   Reply With Quote
Old July 7th, 2008   #2
FranMichaels
Way Too Much Ubuntu
 
FranMichaels's Avatar
 
Join Date: Sep 2007
Location: On a small blue planet.
My beans are hidden!
Re: For Users having sound problems with ZSNES and Hardy

This should be stickied.
__________________
Pears for your heirs
My GNU/Linux and Emulation blog.
Resources for the nostalgic emulation enthusiast.
FranMichaels is offline   Reply With Quote
Old July 7th, 2008   #3
dfreer
Chocolate Ubuntu Mocha Blend
 
dfreer's Avatar
 
Join Date: Jan 2006
Beans: 1,854
Ubuntu 7.10 Gutsy Gibbon
Re: For Users having sound problems with ZSNES and Hardy

Thanks! I just finished playing around with x86_64, same results. The only thing to note with x86_64 is that binaries compiled with --enable-libao (which I always do), you must symbollically link the files in /usr/lib32/ao/plugins-2/ to /usr/lib/ao/plugins-2/, otherwise zsnes will seg fault.
dfreer is offline   Reply With Quote
Old August 26th, 2008   #4
CorryJm
5 Cups of Ubuntu
 
Join Date: Jan 2008
Location: Canada
Beans: 34
Ubuntu 7.10 Gutsy Gibbon
Re: For Users having sound problems with ZSNES and Hardy

I managed to get sound -working- using the tips found here (thanks all!)

however, using (-ad sdl, 48,000 Hz) with hi-quality lowpass, my sound is still scratchy and stuttery.

and other tips?
CorryJm is offline   Reply With Quote
Old August 26th, 2008   #5
dfreer
Chocolate Ubuntu Mocha Blend
 
dfreer's Avatar
 
Join Date: Jan 2006
Beans: 1,854
Ubuntu 7.10 Gutsy Gibbon
Re: For Users having sound problems with ZSNES and Hardy

Quote:
Originally Posted by CorryJm View Post
I managed to get sound -working- using the tips found here (thanks all!)

however, using (-ad sdl, 48,000 Hz) with hi-quality lowpass, my sound is still scratchy and stuttery.

and other tips?
Have you installed libsdl1.2debian-all, and have you used the newer 1.51b? If that doesn't work, try -ad oss, and try the different sound rates like 32,000 Hz - 48,000 Hz.
dfreer is offline   Reply With Quote
Old August 26th, 2008   #6
tuxxy
Tall Cafè Ubuntu
 
tuxxy's Avatar
 
Join Date: Jun 2008
Location: England
Beans: 2,567
Ubuntu Karmic Koala (testing)
Re: For Users having sound problems with ZSNES and Hardy

Why dont try snes9express from the repos, this should provide sound out of the box, also I prefer it to zsnes
__________________
64-Bit User-Group // Twin-View AMD64 X2 6000+|Geforce 9500GT 1024 MB|8GB PC2-6400 DDR2|500GB Seagate SATA // AMD64 X2 4400+|Geforce 8600GTS |4GB PC2-6400 DDR2|360GB Samsung SATA // Ubuntu 9.04 & 9.10 64-Bit
tuxxy is offline   Reply With Quote
Old August 26th, 2008   #7
grossaffe
Quad Shot of Ubuntu
 
grossaffe's Avatar
 
Join Date: Feb 2008
Location: Virginia
Beans: 461
Ubuntu 9.10 Karmic Koala
Re: For Users having sound problems with ZSNES and Hardy

Quote:
Originally Posted by tuxxy View Post
Why dont try snes9express from the repos, this should provide sound out of the box, also I prefer it to zsnes
I would go with the GTK port of SNES9x.
grossaffe is offline   Reply With Quote
Old August 27th, 2008   #8
CorryJm
5 Cups of Ubuntu
 
Join Date: Jan 2008
Location: Canada
Beans: 34
Ubuntu 7.10 Gutsy Gibbon
Re: For Users having sound problems with ZSNES and Hardy

zsnes sound stopped again.

I repeated all of the steps again, but nothing.

wha?

I also just tried installing snes9x.
also no sound.

sound works on videos, amarok, etc.
only area it seems to bum out on is the emulators (playstation emulator sound does not work as well)

edit: restarted, sound is back. =|

Last edited by CorryJm; August 27th, 2008 at 02:32 PM..
CorryJm is offline   Reply With Quote
Old August 28th, 2008   #9
Crafty Kisses
No Random F/R's plz
 
Crafty Kisses's Avatar
 
Join Date: May 2007
Location: Not Montana
Beans: 5,745
Ubuntu Development Release
Send a message via AIM to Crafty Kisses Send a message via Yahoo to Crafty Kisses Send a message via Skype™ to Crafty Kisses
Re: For Users having sound problems with ZSNES and Hardy

Thanks for this, to be honest I've had troubles, but this seems to only semi fixed the problems. Thanks though.
__________________
My first name is Montana, seriously!!
MSI Wind user, and Asus EeePC user!
Crafty Kisses is offline   Reply With Quote
Old October 27th, 2008   #10
dfreer
Chocolate Ubuntu Mocha Blend
 
dfreer's Avatar
 
Join Date: Jan 2006
Beans: 1,854
Ubuntu 7.10 Gutsy Gibbon
Re: For Users having sound problems with ZSNES and Hardy

Quote:
Originally Posted by CorryJm View Post
zsnes sound stopped again.

I repeated all of the steps again, but nothing.

wha?

I also just tried installing snes9x.
also no sound.

sound works on videos, amarok, etc.
only area it seems to bum out on is the emulators (playstation emulator sound does not work as well)

edit: restarted, sound is back. =|
Could be because of flash, I get a lot of reports about pSX no longer working after playing a flash video, rebooting almost always helps.
dfreer is offline   Reply With Quote

Bookmarks

Tags
sound, zsnes

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:11 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry