You are not logged in.

#1 2009-09-13 11:07:52

Eschatokyrios
Member
Registered: 2007-09-22
Posts: 51

no sound only in ZNES

I'm simply not getting any sound at all while running zsnes, regardless of zsnes's internal sound settings. Running it in console I don't see any errors pertaining to sound (only stuff about it being unable to poll /dev/input/event, which I'm pretty sure is irrelevant). Alsa is to the best of my knowledge configured, and other applications can play sound simultaneously with each other without problems. In any case I closed everything that was using sound (to the point where using lsof | grep snd as root returned nothing), and there was still no sound out of zsnes. What else do I need to be looking at to troubleshoot this?

Offline

#2 2009-09-13 23:08:12

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: no sound only in ZNES

If, in zsnes, you go to config --> sound ,  is the sound enabled and the volume turned up?

In looking thru the zsnes man page,  there are options to disable sound.   Are there any shortcuts or anything like that that are turning them off?

Also, I noted that mine, when started from the terminal stated that the audio was opened and which driver was being used, as well as channels and rate.

HTH


Knute

Offline

#3 2009-09-14 01:14:31

e_tank
Member
Registered: 2006-12-21
Posts: 80

Re: no sound only in ZNES

if it's using sdl for audio try setting the SDL_AUDIODRIVER environment variable (refer to this page for more options)

export SDL_AUDIODRIVER=alsa

if you can't get zsnes to work you should try bearoso's fantastic gtk port of snes9x.  sound isn't quite as nice on some games and it's not nearly as fast, but it has such a nice/clean gui (by far the best i've seen on any emulator) and has a wide range of config options as well as netplay.

there's a PKGBUILD for it in AUR thanks to Marcel Wysocki.  i've posted that PKGBUILD below along with some tweaks i've made that make it easier to update each release, specifically i just separated the emulator core and user interface version nums.  other minor changes include removing the gtkglext depend and updating the project homepage.

# Contributor: Marcel Wysocki <maci@satgnu.net>

emuname=snes9x
emuver=1.51
uiver=76
pkgname=snes9x-gtk
pkgver=$emuver.$uiver
pkgrel=1
pkgdesc="GTK+ Version of snes9x, a portable Emulator for the Super Nintento Entertainment System"
url="http://code.google.com/p/snes9x-gtk/"
arch=('i686' 'x86_64')
license=('custom: snes9x')
depends=('libxtst' 'sdl' 'nasm' 'mesa' 'portaudio' 'libglade')
makedepends=(intltool)
source=(http://snes9x-gtk.googlecode.com/files/snes9x-$emuver-src-gtk-$uiver.tar.bz2)
md5sums=('ae16e8c68a116a23bcdf22fb975195f1')

build() {
 
  # build snes9x-gtk with opengl
  cd $srcdir/snes9x-$emuver-src/gtk
  ./configure --prefix=/usr --with-gtk --with-opengl --with-netplay --disable-warn 
  make || return 1
 
  #Manually install the package
  install -D -m755 snes9x-gtk $pkgdir/usr/bin/snes9x-gtk
 
  #Install the .desktop and icon files
  install -D -m644 data/snes9x.desktop $pkgdir/usr/share/applications/snes9x.desktop
  install -D -m644 data/snes9x.svg $pkgdir/usr/share/pixmaps/snes9x.svg
 
  #Install the license
  install -D -m644 $srcdir/snes9x-1.51-src/doc/snes9x-license.txt $pkgdir/usr/share/licenses/snes9x-gtk/COPYING
 
}
 
# vim:set ts=2 sw=2 et:

Offline

#4 2009-09-14 01:15:42

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: no sound only in ZNES

Are you using the arch-games binary package and getting this problem, or compiling it yourself?

Offline

#5 2009-09-15 06:45:41

Eschatokyrios
Member
Registered: 2007-09-22
Posts: 51

Re: no sound only in ZNES

Daenyth wrote:

Are you using the arch-games binary package and getting this problem, or compiling it yourself?

Built the bin32-zsnes package from the AUR (since I'm running 64-bit ARch the arch-games binary won't work).

e_tank, I tried setting the SDL_AUDIODRIVER variable and that didn't work. I don't want to switch to snes9x, though, since I have a lot of savestates that work with zsnes.

I tried compiling from the zsnes sources themselves, but that fails at the make step with a C error I don't understand.

Offline

#6 2009-09-16 01:00:06

e_tank
Member
Registered: 2006-12-21
Posts: 80

Re: no sound only in ZNES

try running the following command and post any output relating to audio/sound, might help someone find out what's wrong.

zsnes -s -ad sdl -r 6 -k 100 -v 0 -m <rom_file>

when i run the above i get this

Audio Opened.
Driver: Simple DirectMedia Layer output
Channels: 2
Rate: 48000

Offline

#7 2009-09-16 01:53:47

Eschatokyrios
Member
Registered: 2007-09-22
Posts: 51

Re: no sound only in ZNES

e_tank wrote:

try running the following command and post any output relating to audio/sound, might help someone find out what's wrong.

zsnes -s -ad sdl -r 6 -k 100 -v 0 -m <rom_file>

when i run the above i get this

Audio Opened.
Driver: Simple DirectMedia Layer output
Channels: 2
Rate: 48000

I fail to get that Audio Opened message and ZSNES runs, as it always has done, with no sound. There's simply no message about sound at all. All I get is

Be sure to check http://www.zsnes.com/ for the latest version.

ZSNES is written by the ZSNES Team (See AUTHORS.TXT)
ZSNES comes with ABSOLUTELY NO WARRANTY.  This is free software,
and you are welcome to redistribute it under certain conditions;
please read 'LICENSE.TXT' thoroughly before doing so.

Use ZSNES -? for command line definitions.

Starting Mouse detection.
Unable to poll /dev/input/event5. Make sure you have read permissions to it.
Unable to poll /dev/input/event8. Make sure you have read permissions to it.
Unable to poll /dev/input/event7. Make sure you have read permissions to it.
Unable to poll /dev/input/event6. Make sure you have read permissions to it.
Unable to poll /dev/input/event4. Make sure you have read permissions to it.
Unable to poll /dev/input/event2. Make sure you have read permissions to it.
Unable to poll /dev/input/event3. Make sure you have read permissions to it.
Unable to poll /dev/input/event1. Make sure you have read permissions to it.
Unable to poll /dev/input/event0. Make sure you have read permissions to it.
ManyMouse: 0 mice detected.
ZSNES could not find any joysticks.

Last edited by Eschatokyrios (2009-09-16 01:54:21)

Offline

#8 2009-10-11 19:06:29

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: no sound only in ZNES

Did you ever get this going? I'm having the exact same problem.

Offline

#9 2009-10-13 17:57:40

Intrepid
Member
Registered: 2008-06-11
Posts: 254

Re: no sound only in ZNES

Are you using the "DEFAULT" SDL audio device?  I don't quite remember the variable, but SDL_Output or something like that needs to equal Default for stereo sources.  I'm not 100% sure how to make this work, but I used to use it for some SDL programs.  I'm the maintainer of the AUR zsnes package, and I have no problems myself.

Do other SDL audio programs not play sound for you?

On a side note, arch-games was kind enough to provide a packaged version of my bin32-zsnes PKGBUILD in their x86_64 repository as well as snes9x-gtk big_smile.

Last edited by Intrepid (2009-10-13 17:58:35)


Intrepid (adj.): Resolutely courageous; fearless.

Offline

#10 2012-01-12 05:58:45

piratebill
Member
From: Sol System
Registered: 2011-10-20
Posts: 145

Re: no sound only in ZNES

This may be a little late, but I fixed this problem by installing lib32-libpulse

Offline

#11 2012-01-12 06:19:43

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,700

Re: no sound only in ZNES

piratebill wrote:

This may be a little late, but I...

Yeah, two years is a bit much.  Closing
Our Policy


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB