Linux + SDL + Alsa. [Solved(?)]

Found a bug? Please report it, but remember to follow the bug reporting guidelines.
Missing a sane feature? Let us know!
But please do NOT request ports to other systems.

Moderator: ZSNES Mods

grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

phibxr wrote:Are you using ALSA and SDL together? It seems to work just fine with OSS, so those using OSS won't ever notice.
I'm using ALSA, and I have this 'asking for 2000, getting 2048' line, but I don't have any major sound trouble once I kill everything using CPU.
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
phibxr
Rookie
Posts: 30
Joined: Sun Aug 08, 2004 5:53 pm
Location: Stockholm, Sweden.

Post by phibxr »

grinvader wrote:
phibxr wrote:Are you using ALSA and SDL together? It seems to work just fine with OSS, so those using OSS won't ever notice.
I'm using ALSA, and I have this 'asking for 2000, getting 2048' line, but I don't have any major sound trouble once I kill everything using CPU.
Do you think you could post your SDL-version, ALSA-version, soundcard and distribution? I've tried ZSNES on six different systems, ranging from an AMD K6/2 450mhz to an Intel somewhere around ~2.4ghz, all running different distributions of linux, always getting the same result.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

I'm not sure what I'm using, I think it's OSS, and I had sound jerkiness till some recent changes.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

gentoo linux 2.4.26-r12
libsdl 1.2.7-r3
alsa-lib 1.0.6, alsa-oss 1.0.6 too.
alsa-driver 1.0.6a
P4 1.8GHz 448MB ram
Soundcard... creative ensoniq thingy don't remember exactly
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
phibxr
Rookie
Posts: 30
Joined: Sun Aug 08, 2004 5:53 pm
Location: Stockholm, Sweden.

Post by phibxr »

grinvader wrote:gentoo linux 2.4.26-r12
libsdl 1.2.7-r3
alsa-lib 1.0.6, alsa-oss 1.0.6 too.
alsa-driver 1.0.6a
P4 1.8GHz 448MB ram
Soundcard... creative ensoniq thingy don't remember exactly
Hmm. Those specs resemble mine very much. The only difference is in the kernel version. I use 2.6.9.
noob saibot
New Member
Posts: 5
Joined: Fri Oct 08, 2004 11:05 pm

Post by noob saibot »

Just wanted to say that I had been having the same problem described in this thread, and using the source provided by deathpudding seems to have fixed it entirely. Now I can finally move on from 1.36.
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

I'm gonna try this patch and if it doesn't break anything, I'll commit it to cvs...
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
phibxr
Rookie
Posts: 30
Joined: Sun Aug 08, 2004 5:53 pm
Location: Stockholm, Sweden.

Post by phibxr »

That sounds wonderful indeed. Has it been committed yet?
phibxr
Rookie
Posts: 30
Joined: Sun Aug 08, 2004 5:53 pm
Location: Stockholm, Sweden.

Post by phibxr »

It didn't seem to be in the release. Any news?
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

The sound code was reverted. The 1.36 code is used in v1.40.

You can check here.
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
phibxr
Rookie
Posts: 30
Joined: Sun Aug 08, 2004 5:53 pm
Location: Stockholm, Sweden.

Post by phibxr »

grinvader wrote:The sound code was reverted. The 1.36 code is used in v1.40.

You can check here.
That's true. I'll recompile it and check it again.

Oh, by the way - could anyone explain what the patched code really (un)does? To me it seems like it only reduces the size of the buffer.

And, I almost forgot, many thanks to those who found out how to patch this and to grinvader for committing the patch.
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

I didn't commit it - thank nach, he's the man.
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

phibxr wrote: Oh, by the way - could anyone explain what the patched code really (un)does? To me it seems like it only reduces the size of the buffer.
Read this: http://sourceforge.net/tracker/index.ph ... tid=319677
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
phibxr
Rookie
Posts: 30
Joined: Sun Aug 08, 2004 5:53 pm
Location: Stockholm, Sweden.

Post by phibxr »

Nach wrote:
phibxr wrote: Oh, by the way - could anyone explain what the patched code really (un)does? To me it seems like it only reduces the size of the buffer.
Read this: http://sourceforge.net/tracker/index.ph ... tid=319677
Thanks for committing the patch, Nach. You're the man. ;)
Post Reply