sound in linux
Moderator: ZSNES Mods
sound in linux
Hello all. I just started using zsnes and its great. However im having an issue with sound. first my system:
slackware 10, amd tbird 1.4 512mb ddr, 32mb tnt2 nvidia, using opengl and alsa. zsnes is built from WIP source 0803 with gcc optimization (just -O3)
it seems that no matter what combo of sound/video options i use, there is still a bit of sketchiness in the sound. the latest stable is worse than WIP, and the sound isnt unbearable, just bad enough to be irritating. any suggestions?
slackware 10, amd tbird 1.4 512mb ddr, 32mb tnt2 nvidia, using opengl and alsa. zsnes is built from WIP source 0803 with gcc optimization (just -O3)
it seems that no matter what combo of sound/video options i use, there is still a bit of sketchiness in the sound. the latest stable is worse than WIP, and the sound isnt unbearable, just bad enough to be irritating. any suggestions?
-
- Devil's Advocate
- Posts: 2293
- Joined: Mon Aug 02, 2004 7:51 pm
- Location: Hmo. Son.
-
- New Member
- Posts: 6
- Joined: Wed Aug 04, 2004 9:29 pm
-
- Devil's Advocate
- Posts: 2293
- Joined: Mon Aug 02, 2004 7:51 pm
- Location: Hmo. Son.
If someone uses and OS, he or she has a reason to use it, don't bash an OS just because you don't like it.... Sorry I can't contribute something productive to the thread.kenmasters1983 wrote:linux is crap dont use it for emu's or anything..too much typing and who wants to read all that crap about installing the right video card drivers sound drivers not mention all the problems with modems with linux.
go get win98 instead..
*Sometimes I edit my posts just to correct mistakes.
-
- ZNES Developer
- Posts: 215
- Joined: Mon Aug 02, 2004 11:22 pm
HAHAHAHAHAHAHAHAkenmasters1983 wrote:linux is crap dont use it for emu's or anything..too much typing and who wants to read all that crap about installing the right video card drivers sound drivers not mention all the problems with modems with linux.
go get win98 instead..
You are paving your way to BANNAGE, beware.
You can actually download a frontend for snes9x from sourceforge. Or you can create a link to your desktop with the emulator.
you right click then pick "creat new" and in their pick "link to application" thenyou will need to type in the emulators directory and all the commands with it. In other words type the command in.
you right click then pick "creat new" and in their pick "link to application" thenyou will need to type in the emulators directory and all the commands with it. In other words type the command in.
Some people are like slinky's not really good for anything but you can't help smile when one falls down the stairs.
i looked at that frontend, assuming youre referring to the kde one. i havent used it but im assuming its just a hack to control the arguments passed to the external emu command. Im not a fan of such hacks, but i may try it. If only zsnes had as good sound as snes9x! everything else about zsnes it great!
Do you have artsd or esd running in the background? If so, try killing them first.burn wrote:my sound is configured. like i said sound for zsnes works, its just choppy, and sound on my sustem in general is perfect
For some reason, zsnes doesn't seem to like soundwrappers. It needs direct access to the sound card or it doesn't sound right.
There seems to be some very serious issues with ZSnes and (probably) SDL+ALSA under Linux.
In my opinion it seems to be related to the auto-framerate, because the sound seems to change its framerate multiple times every second, resulting in very strange (although subtle) tempo-changes which distorts the whole experience of playing.
I'd be very grateful if a developer of ZSnes would put an answer in this thread, even if it belongs in the bug-forum, because this problem has been with us a few years.
In my opinion it seems to be related to the auto-framerate, because the sound seems to change its framerate multiple times every second, resulting in very strange (although subtle) tempo-changes which distorts the whole experience of playing.
I'd be very grateful if a developer of ZSnes would put an answer in this thread, even if it belongs in the bug-forum, because this problem has been with us a few years.
Re: sound in linux
When you say sketchy, do you mean it stutters or certain sounds are inaccurate? I can certainly vouch for the latter as an actual problem in zsnes(although I've only really seen it get bad with Chrono Trigger's menu sounds).burn wrote:Hello all. I just started using zsnes and its great. However im having an issue with sound. first my system:
slackware 10, amd tbird 1.4 512mb ddr, 32mb tnt2 nvidia, using opengl and alsa. zsnes is built from WIP source 0803 with gcc optimization (just -O3)
it seems that no matter what combo of sound/video options i use, there is still a bit of sketchiness in the sound. the latest stable is worse than WIP, and the sound isnt unbearable, just bad enough to be irritating. any suggestions?
I also have this problem.
.
If you close zsnes then try to reopen it, sound won't work, you will have to go into sound uncheck then check the arts option in the sound configuaration in kde, then click aply and repeat. Somuch work
.
The sound for is behind a few seconds with the addition of sound slightly inaccurate e.g. I swing my sword in zelda and it takes a few seconds for me to hear the swing.
just to add, First run zsnes with that artsd, load a game, then wait untill sound starts(anysound releated to zsnes), then press esc, wait till the sound stops and quit, then type 'killall artsd' press enter and run zsnes, sound should work properlyFor some reason, zsnes doesn't seem to like soundwrappers. It needs direct access to the sound card or it doesn't sound right.

If you close zsnes then try to reopen it, sound won't work, you will have to go into sound uncheck then check the arts option in the sound configuaration in kde, then click aply and repeat. Somuch work

The sound for is behind a few seconds with the addition of sound slightly inaccurate e.g. I swing my sword in zelda and it takes a few seconds for me to hear the swing.
To clarify
zsnes-wip has timing problems on Linux, as far as I can tell, with every build, for about a year. It broke sometime in 2003, and after banging my head against it for a while with and without SDL, etc, I gave up, and decided to just use Zsnes 1.36 / Snes9x instead, which do not exhibit these problems.
The timing problems are most obvious in the sound stream, but I believe the entire time flow of the emulator is stuttery. I'm sure the problem is made more severe by the low horsepower of my system, as I have a VIA c3 processor at 866mhz. On my system, what happens is the music playrate oscillates, it remains roughly stable for a time, at what sounds like approximately the right rate (I don't know how to check if it's not slightly off), and then will stutter, where what would normally be the timeflow like so:
Ends up in the problem segments more like this:
Note that after a few such "stutters", time will seem approximately correct a period of time around a second or two, and then a series of stutters will happen again. I am uncertain if this cyclic occurence is a matter of processor allocation and the vagaries of the autoskip algorithm, or some kind of quantization of two values which are slightly off.
If I set the emulator to a fixed frameskip, that particular problem does not manifest, but the entire speed of the game is multiplied by the frameskip which is NOT how it thought frameskip was supposed to work.
Full disclosure: I use do use alsa for my sound system, but do not have a way to conveniently swap back to the ancient OSS code, since Linux now has ALSA as the standard, kernel-supplied sound subsystem. Again, this problem does not occur with ZSNES 1.36 (non WIP).
Does anyone know how to contact ipher? I'd be very happy if someone were to pass this along. I am willing to do test legwork and try to provide intelligent feedback (hopefully the above is convincing) and am conteactable at jrodman AT zsnes-wip DOT spamportal DOT net
The timing problems are most obvious in the sound stream, but I believe the entire time flow of the emulator is stuttery. I'm sure the problem is made more severe by the low horsepower of my system, as I have a VIA c3 processor at 866mhz. On my system, what happens is the music playrate oscillates, it remains roughly stable for a time, at what sounds like approximately the right rate (I don't know how to check if it's not slightly off), and then will stutter, where what would normally be the timeflow like so:
Code: Select all
1 2 3 4 5 6 7 8 9 ..
Code: Select all
123 456 789
If I set the emulator to a fixed frameskip, that particular problem does not manifest, but the entire speed of the game is multiplied by the frameskip which is NOT how it thought frameskip was supposed to work.
Full disclosure: I use do use alsa for my sound system, but do not have a way to conveniently swap back to the ancient OSS code, since Linux now has ALSA as the standard, kernel-supplied sound subsystem. Again, this problem does not occur with ZSNES 1.36 (non WIP).
Does anyone know how to contact ipher? I'd be very happy if someone were to pass this along. I am willing to do test legwork and try to provide intelligent feedback (hopefully the above is convincing) and am conteactable at jrodman AT zsnes-wip DOT spamportal DOT net