LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-29-2016, 01:47 PM   #1
Rinndalir
Member
 
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:

http://bugs.kerbalspaceprogram.com/issues/7514

and that got me to this one:

http://bugs.kerbalspaceprogram.com/issues/7515

and finally this one:

http://bugs.kerbalspaceprogram.com/a.../pulsenomore.c

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

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

./pulsenomore myapp
pulsenomore loads the app into memory than replaces libpulse-simple.so.0 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
Rinndalir
Member
 
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.
 
  


Reply

Tags
pulseaudio



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:48 PM.

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