pulseaudio: fixed some build issues
This commit is contained in:
parent
522cedf12e
commit
33e6c7a834
@ -20,8 +20,8 @@ o append the following line to /etc/apt/sources.list
|
|||||||
#deb http://archive.getdeb.net/ubuntu precise-getdeb games
|
#deb http://archive.getdeb.net/ubuntu precise-getdeb games
|
||||||
deb http://drbl.sourceforge.net/drbl-core drbl stable
|
deb http://drbl.sourceforge.net/drbl-core drbl stable
|
||||||
deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
|
deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
|
||||||
|
|
||||||
NOTE: If you get an error message that goes something like this:
|
NOTE: If you get an error message that goes something like this:
|
||||||
|
|
||||||
E: You must put some 'source' URIs in your sources.list
|
E: You must put some 'source' URIs in your sources.list
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ o run these commands in your home directory
|
|||||||
|
|
||||||
o edit Makefile and point PULSE_DIR to ~/pulseaudio<version> dir
|
o edit Makefile and point PULSE_DIR to ~/pulseaudio<version> dir
|
||||||
|
|
||||||
o run make; the outputs will be
|
o run make; the outputs will be
|
||||||
module-xrdp-sink.so
|
module-xrdp-sink.so
|
||||||
module-xrdp-source.so
|
module-xrdp-source.so
|
||||||
|
|
||||||
@ -49,6 +49,14 @@ o sudo cp module-xrdp-sink.so /usr/lib/pulse-<version>/modules
|
|||||||
sudo cp module-xrdp-source.so /usr/lib/pulse-<version>/modules
|
sudo cp module-xrdp-source.so /usr/lib/pulse-<version>/modules
|
||||||
note: on a 64bit machine use lib64 instead of lib
|
note: on a 64bit machine use lib64 instead of lib
|
||||||
|
|
||||||
|
o if you build xrdp with --enable-load_pulse_modules, then the above modules
|
||||||
|
will get loaded automatically when xrdp starts. However if --enable-load_pulse_modules
|
||||||
|
is not used, then you need to edit /etc/pulse/default.pa and insert the following
|
||||||
|
two lines into it:
|
||||||
|
|
||||||
|
load-module module-xrdp-sink
|
||||||
|
load-module module-xrdp-source
|
||||||
|
|
||||||
--------------------------------------
|
--------------------------------------
|
||||||
To test sound/microphone redirection
|
To test sound/microphone redirection
|
||||||
--------------------------------------
|
--------------------------------------
|
||||||
|
@ -17,13 +17,16 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <pulse/util.h>
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/errno.h>
|
#include <sys/errno.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
|
|
||||||
|
#ifdef XRDP_LOAD_PULSE_MODULES
|
||||||
|
#include <pulse/util.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "thread_calls.h"
|
#include "thread_calls.h"
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user