Software Support > GroovyMAME

Groovyarcade installed to disk = No ALSA?

(1/3) > >>

Sonny_Jim:
Hi all,

I'm a long time AdvanceCD user and I thought I'd give groovymame a try.  So far so good, I've got it running nicely on the AVGA card but I have an issue with ALSA.

If I boot from the LiveCD, I can switch to ALSA and it works fine, but when I've done the HDD install, ALSA no longer works?  I've tried /etc/init.d/alsasound start but it just tells me it can't find any sound cards, even though OSS works?

The reason I wish to switch to ALSA is because of the huge sound lag in some games, it's especially noticeable in Hypersports during the skeet shooting, the gunshot is delayed by about 100ms which wrecks my timing!

EDIT:  after reading the thread here I did a bit of investigating:
http://forum.arcadecontrols.com/index.php?topic=113337.0

It appears that I have no alsa drivers installed in /lib/modules/, only OSS.  Could someone walk me through copying the alsa drivers off the livecd?

Ansa89:
The sound modules should be in "/lib/modules/`uname -r`/kernel/sound".
I guess you can safely copy all the content if this directory from the live system to your hard disk install.

Sonny_Jim:
Ok, so I booted the livecd, copied the contents of /lib/modules/3.0.2+/kernel/sound across (via tar archive) to a usb key and booted up the hard disc install.

I looked in /lib/modules/3.0.2+/kernel/sound on the HDD install and it's non-existent, which is odd but expected.  I untarred the archive in there, being careful to make sure I kept permissions/folder structure correct.  All good, so I run "update-modules" and tried /etc/rc.d/alsasound start, which gave me no dice.

Scratching my head a little, I tried modprobe soundcore, which responded with that it didn't know where soundcore was.  This was odd, as I definitely ran update-modules and put it in the right place.  I could insmod soundcore if I gave it the specific location, so I know that at least it's compatible.  I also tried alsaconf but it came back as no cards.  I'd like to point out that under OSS or using the LiveCD, my soundcard gets detected just fine.

Now here's the really odd part, when I had rebooted, the folder in /lib/modules/3.0.2+/kernel/sound had disappeared!   Is /lib/modules/3.0.2+ being created on boot or copied from a filesystem image somewhere?

Ansa89:
Ok, that's really strange.
The only thought (at the moment) is look at the startup/shutdown script, searching if there is something messed up.
As a workaround you can create/modify a startup script which copy the "sound/" directory every system boot:

--- Code: ---#!/bin/bash
if ! [ -d /lib/modules/`uname -r`/kernel/sound ]; then
   cp -a /path/to/saved/sound_dir /lib/modules/`uname -r`/kernel/sound
   chown -R root:root /lib/modules/`uname -r`/kernel/sound
   depmod -a `uname -r`
fi
--- End code ---

Sadly bitbytebit is really busy in this period...You can try to contact ves (or Calamity), hoping he has a better answer for that.

Sonny_Jim:
Hmmrph, I take it that no one uses ALSA then?

I managed to fix my problem by changing the sound latency option in mame.ini from 3 to 1.

Navigation

[0] Message Index

[#] Next page

Go to full version