Coder Social home page Coder Social logo

Comments (5)

sitmo avatar sitmo commented on July 24, 2024 1

I've been looking into the same thing, also tried to Dockerize it. I've made some progress with using Xvfb for headless video, but so far no luck with getting rid of the audio.

`
apt-get intall -y xvfb

Xvfb :0 -screen 0 800x600x16 +extension RANDR &

export DISPLAY=:0

./mame
`

from mametoolkit.

guanzeying avatar guanzeying commented on July 24, 2024

Thanks. When I run mame. output tips:
ALSA lib seq_hw.c:466:(snd_seq_hw_open) open /dev/snd/seq failed: Permission denied
It can't continue.

from mametoolkit.

M-J-Murray avatar M-J-Murray commented on July 24, 2024

"Permission denied" usually means your current user doesn't have permission to run a command. Try writing 'sudo' before the command. If that doesn't help then I'm unsure how to help, as I have not seen that error before.

from mametoolkit.

guanzeying avatar guanzeying commented on July 24, 2024

I writing 'sudo' before the command, But error same as last.

from mametoolkit.

M-J-Murray avatar M-J-Murray commented on July 24, 2024

I've just done some work improving the compatibility of the library and I've worked out what was going on with this issue. Although the library raises the warning:

ALSA lib conf.c:3750:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib seq.c:935:(snd_seq_open_noupdate) Unknown SEQ default

It does not affect MAME or the library's performance. Everything will be working as normal. The error is caused by MAME not being able to setup sound for the game. If you do want sound for some reason and you have no screen then have a look at this forum: https://unix.stackexchange.com/questions/105964/launch-a-fake-minimal-x-session-for-pulseaudio-dbus

I have also added documentation describing how to run the library without a screen.

from mametoolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.