Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Killing pulseaudio to run pSX

  1. #1
    Join Date
    Jul 2005
    Beans
    244

    Killing pulseaudio to run pSX

    Ever since the upgrade to Jaunty (and possibly Intrepid, since I never used this program on Intrepid), the pSX emulator called pSX has not been working. Startup brings this error:

    Code:
    [src/linux/sound.cpp, line 215]: 'snd_pcm_hw_params_set_access(pcm_handle,hwparams,SND_PCM_ACCESS_MMAP_INTERLEAVED)' returned 'Invalid argument'
    Segmentation fault
    If I kill pulseaudio as suggested by many, when I start the program again (or any program with sound I think), pulseaudio opens back up so it gets the same error.

    NOTE: THE FOLLOWING IS CONFUSING ME. pSX works under sudo even when pulseaudio is running sometimes, but sometimes it gives the same error as without sudo until I kill pulse:

    Code:
    However, if I kill pulseaudio then run sudo pSX, it works. I think this is because trying to open pulseaudio with sudo gives an error about how it's not intended to be run by root, so pSX can't reopen it. Regardless, I don't want to run it as sudo, for security and because then I have to use root's home directory.
    Does anyone know how to keep pulseaudio from reopening when I run pSX, or make pSX work with pulseaudio?

    One thing that may be useful: I play another game called N through Wine, which was freezing up every few seconds. Turned out that every time it played a sound, it was freezing (an entry popped up in the program paman of ALSA plug-in [wine-preloader] then quickly disappeared). If I kill pulseaudio then open N before doing anything else, it restarts pulseaudio, but the game works. Not sure if I could get a similar effect for pSX. As it is, so I don't have to do that, I have wine using the OSS instead of ALSA plugin.
    Last edited by DeathOnJuice; May 4th, 2009 at 04:07 AM.

  2. #2
    Join Date
    Jul 2005
    Beans
    244

    Re: Killing pulseaudio to run pSX

    Bump.

  3. #3
    Join Date
    Jul 2005
    Beans
    244

    Re: Killing pulseaudio to run pSX

    And again.

  4. #4
    Join Date
    Jul 2005
    Beans
    244

    Re: Killing pulseaudio to run pSX

    Bump.

  5. #5
    Join Date
    Jan 2008
    Location
    the space between spaces.
    Beans
    1,654

    Re: Killing pulseaudio to run pSX

    Try running it with the padsp wrapper:
    Code:
    padsp psx
    "If a cluttered desk signs a cluttered mind, Of what, then, is an empty desk a sign?" -Albert Einstein.

  6. #6
    Join Date
    Jul 2005
    Beans
    244

    Re: Killing pulseaudio to run pSX

    It returned the following:

    Code:
    Segmentation fault

  7. #7
    Join Date
    Jul 2005
    Beans
    244

    Re: Killing pulseaudio to run pSX

    Bump.

  8. #8
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Killing pulseaudio to run pSX

    it looks like pSX is having trouble with soundcard detection. here's how I managed to workaround this on Jaunty amd64. I did have to run pSX with sudo, but only once. here's the deal:

    1. kill pulseaudio (sudo killall pulseaudio)
    2. run pSX as root (sudo ./pSX)
    3. find the "sound" tab in the configuration and switch the "device" setting from "default" to your soundcard (plughw:0,0 in my case). apply. close pSX.
    4 open /root/.pSX/psx.ini in a text editor (gksudo gedit /root/.pSX/psx.ini). find the "device" string under [Sound] section (I have "b7d317a4" there).
    5. paste this string into the relevant section in ~/.pSX/psx.ini, in place of all zeroes. save. if you don't have this file in your user directory, run pSX and cancel just after choosing language, on the bios selection screen. pSX should save settings then.

    now pSX runs fine even after reboot.
    Last edited by Grishka; May 15th, 2009 at 09:34 AM.

  9. #9
    Join Date
    Sep 2005
    Location
    Boardman, OH
    Beans
    345
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Killing pulseaudio to run pSX

    Quote Originally Posted by Grishka View Post
    it looks like pSX is having trouble with soundcard detection. here's how I managed to workaround this on Jaunty amd64. I did have to run pSX with sudo, but only once. here's the deal:

    1. kill pulseaudio (sudo killall pulseaudio)
    2. run pSX as root (sudo ./pSX)
    3. find the "sound" tab in the configuration and switch the "device" setting from "default" to your soundcard (plughw:0,0 in my case). apply. close pSX.
    4 open /root/.pSX/psx.ini in a text editor (gksudo gedit /root/.pSX/psx.ini). find the "device" string under [Sound] section (I have "b7d317a4" there).
    5. paste this string into the relevant section in ~/.pSX/psx.ini, in place of all zeroes. save. if you don't have this file in your user directory, run pSX and cancel just after choosing language, on the bios selection screen. pSX should save settings then.

    now pSX runs fine even after reboot.
    Got to step two and it still crashes on me. It mentions PulseAudio, even though I killed it, so it seems to be restarting it anyways.

    Code:
    E: core-util.c: Home directory /home/anthony not ours.
    E: core-util.c: Home directory /home/anthony not ours.
    ALSA lib pulse.c:272:(pulse_connect) PulseAudio: Unable to connect: Connection refused
    
    [src/linux/sound.cpp, line 582]: 'snd_pcm_open(&pcm_handle,dev->info->device_fname,SND_PCM_STREAM_PLAYBACK,0)' returned 'Connection refused'
    pSX: pcm_params.c:2259: snd_pcm_hw_refine: Assertion `pcm && params' failed.
    Aborted
    Last edited by TheIdiotThatIsMe; May 16th, 2009 at 05:02 AM. Reason: Add information

  10. #10
    Join Date
    Aug 2006
    Beans
    99

    Re: Killing pulseaudio to run pSX

    Grishka, your solution worked for me, thanks!!
    Arch 3.3.1-1 (x86_64) w/Gnome 3.2
    ASUS P7P55-E-Pro, Geforce GTX460, i5-750, 8GB
    Dell XPS m1330, Geforce 8400M, 4965AGN
    HP Folio 13 Ultrabook

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •