Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-29-2016, 01:47 PM   #1
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
Bypass pulseaudio problems and crashes when you don't have pulseaudio.

I was looking into how Kerbal Space Program runs on linux (before I buy) and came across this one:

and that got me to this one:

and finally this one:

This is a nice work around if you don't have (or want) pulseaudio but have to run an app that requires pulseaudio.

gcc -std=gnu99 -O2 -o pulsenomore pulsenomore.c -ldl

./pulsenomore myapp
pulsenomore loads the app into memory than replaces entries to /dev/null

Have not had a chance to test it, yet but looking at the code it seems simple enough and it doesn't require any root privileges.
Old 08-31-2016, 01:00 PM   #2
Registered: Sep 2015
Posts: 733

Original Poster
Rep: Reputation: Disabled
I found out that the pulsenomore 64-bit works fine if myapp is also 64-bit. But pulsenomore 64-bit did not work when myapp was 32-bit. I might have to create another wrapper script around myapp to use LD_PRELOAD or LD_LIBRARY_PATH to load 32-bit libs. More research required.

Also the technique is useful for other cases and presents some interesting ideas.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Do I have PulseAudio or don't I? Ihatewindows522 Linux - Software 12 09-01-2015 09:48 AM
Don't play audio from two or more sources. Debian wheezy - pulseaudio gigam Linux - Desktop 1 08-13-2012 05:13 AM
[SOLVED] Squeeze + Pulseaudio + Alsa and USB Midi device causes Pulseaudio crash mad4linux Debian 1 01-26-2011 03:57 AM
Winecfg crashes on sound tab with Pulseaudio and no 'sounddrivers' without pulseaudio William (Dthdealer) Linux - Software 5 06-13-2010 07:30 AM
[SOLVED] pulseaudio problems for ProjectM henkees Slackware 2 02-27-2010 05:44 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration