Commit graph

305 commits

Author SHA1 Message Date
Maarten Bosmans
b3721a12c5 Fixup #include directives according to Coding Style
Use #include "header.h" if functionality of header.h is implemented
and #include <header.h> if functionality of header.h is used.
2011-03-11 11:49:39 +00:00
Maarten Bosmans
ecf09f2cd6 Fix up according to Coding Style
Only whitespace changes in here
2011-03-11 11:49:35 +00:00
Tanu Kaskinen
983d4c238d pacat: Fix memory leak when draining the context. 2011-03-11 13:37:49 +02:00
Maarten Bosmans
53695b83dc Get rid of some unused-function compiler warnings 2011-03-02 14:52:46 +00:00
Colin Guthrie
0d1e53e30a x11: Make pax11publish -r remove PULSE_SESSION_ID
This is not set by pax11publish, but module-x11-publish does so this tool
should tidy that up. It is only removed when passing -r and is
ignored when actually setting up it's own properties from the conf
files/guesswork.
2011-03-01 18:15:28 +00:00
Maarten Bosmans
974af43507 build: Don't include empty Makefile.am in subdirs 2011-01-31 12:40:43 +00:00
Michal Schmidt
4bb8a83c62 padsp: wrap __open_2 and __open64_2
These functions are used in OSS programs where the "flags" parameter for
open() is not a build-time constant and the build has _FORTIFY_SOURCE
enabled.
2011-01-10 20:49:40 +00:00
Colin Guthrie
3e28f60592 build-sys: Replace dummy Makefiles with proper Makefile.am's
This is needed to better support out of tree builds (including
distcheck) and to ensure the necessary folders are created in the
build tree on configure and also works around an intl-tools bug
(https://bugs.launchpad.net/intltool/+bug/605826)

The Makefile.am's used are minimal (and in some cases completely
blank). At present they do not include anything interesting
with the majority of the real work still done by the monolitic
src/Makefile.am

It may make sense to start splitting out src/Makefile.am into
smaller chunks but this commit makes the minimum changes to address
the issues that result from using make distcheck and other out of
tree builds.

Note: This 'breaks' the ability to type make in e.g. the src/modules
folder and have all of PA rebuilt accordingly (this is because the
static Makefiles previously present just did a "make -C ..") which
was purportedly for use in emacs. But I'm sure there will be a better
and more robust way to configure emacs to do your builds properly if
this behaviour is still desirable.
2010-12-05 15:58:59 +00:00
Arun Raghavan
3265424f27 pactl: Validate volume before setting
This makes sure that a valid volume is provided before setting on
sink/sink-input/source.
2010-10-15 01:10:00 +05:30
Colin Guthrie
f73e9c19f7 x11: Use the default screen for X11 properties.
This commit restores the functionality originally included in 65e807
by Leszek Koltunski.
2010-09-18 12:05:38 +01:00
Colin Guthrie
24014e779c xcb: Ensure the XCB connection is valid before using it. 2010-09-18 12:05:19 +01:00
Colin Guthrie
38778117f8 x11: Partially convert to XCB.
This commit mostly converts the X11 handling to XCB. There are still
some uses of XLib to deal with the X11 session handling modules, however all
client-side code should now be free of XLib and thus this should fix Bug #799

Note that this removes the screen-based changes by Leszek Koltunski
in 65e80, however this will be restored in due course.
2010-09-18 12:04:09 +01:00
Pierre-Louis Bossart
9b6c84ad6e AC3 passthrough support
Second version after Tanu's feedback

TODO:
    - notify client that volume control is disabled
    - change sink rate in passthrough mode if needed
    - automatic detection of passthrough mode instead of hard
    coded profile names

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@intel.com>
2010-08-12 18:20:27 +01:00
Lennart Poettering
0a7fccdb3d pacat: pass buffer_attr to recording streams too
Pointed out by Colin Guthrie.

https://tango.0pointer.de/pipermail/pulseaudio-discuss/2010-February/006698.html
2010-02-21 21:09:26 +01:00
Lennart Poettering
609a005b77 pacmd: don't enter busy loop when reading from stdin very early
pointed out in:

https://tango.0pointer.de/pipermail/pulseaudio-discuss/2010-January/006365.html
2010-02-21 18:13:26 +01:00
Lennart Poettering
f9f2d6f3e0 pacmd: store away fd type 2010-02-21 17:47:48 +01:00
Lennart Poettering
d57ba82414 pacat: always fully fulfill write requests
Make sure we always fulfill write requests from the server. If we don't
the server won't ask us again and playback will stay stuck.

https://tango.0pointer.de/pipermail/pulseaudio-discuss/2010-February/006611.html
2010-02-21 17:47:44 +01:00
Lennart Poettering
69ddfaf6ed padsp: emulate /dev/audio, too
https://bugzilla.redhat.com/show_bug.cgi?id=561262
2010-02-21 17:47:31 +01:00
Lennart Poettering
f6f957b53c Revert "pacat: Don't use any buffer attr if we don't set any latency/process time params"
This reverts commit ff2091b2c4.
2010-02-21 17:40:44 +01:00
Lennart Poettering
2c631dfe9a pactl: implement pactl subscribe
This is a simple debugging tool which prints out subscription events
2010-02-21 17:39:47 +01:00
Colin Guthrie
ff2091b2c4 pacat: Don't use any buffer attr if we don't set any latency/process time params 2010-02-11 23:33:19 +00:00
Lennart Poettering
fb55798a3e pacat: allow configuration of latency in msec 2010-02-09 22:44:30 +00:00
Daniel Mack
17d34462ea poll() is totally broken on Mac OS X
Even on 10.5.8, poll() does not do the right thing. Haven't checked on
newer versions. Hence, wrap all occurences of poll() to pa_poll and
emulate that call with select() on OSX. This is totally embarassing.
2009-12-16 16:11:36 +08:00
Jason Newton
4eb65a0a46 src/utils/qpaeq: added more friendly error messages to common errors 2009-11-20 15:56:46 -08:00
Jason Newton
77c6b69656 remove .py extension from qpaeq 2009-11-20 15:07:47 -08:00
Jason Newton
41853cc7c0 added qpaeq script for GUI equalizer control to src/util 2009-11-20 14:56:07 -08:00
Lennart Poettering
65e7bc18a9 use cloexec wrappers wherever applicable 2009-10-30 03:32:38 +01:00
Lennart Poettering
78984e4395 pactl: format cookie a little bit nicer 2009-10-28 23:28:12 +01:00
Lennart Poettering
8678f56532 pactl: include information about client context in pactl stat output 2009-10-28 23:27:50 +01:00
Lennart Poettering
7c55d6e91d clients: drop definition of BUFSIZE which is unused 2009-10-28 23:27:14 +01:00
Lennart Poettering
7b76ea3784 core-util: unify how we determine the temporary directory 2009-09-17 21:06:54 +02:00
Lennart Poettering
2d9168ceb3 Improve TMPDIR handling
Patch from 'jnelson',

http://pulseaudio.org/ticket/653
2009-09-17 20:58:36 +02:00
Lennart Poettering
1a6974a1e2 pacat: use fully automatic buffer sizes if possible 2009-09-17 01:22:48 +02:00
Lennart Poettering
7cc100d9e1 padsp: properly return return values (llvm-clang-analyzer) 2009-09-08 23:54:53 +02:00
Lennart Poettering
b51f5e58cc pacat: don't convert stream name twice (llvm-clang-analyzer) 2009-09-08 23:54:31 +02:00
Lennart Poettering
f5046759cd llvm-clang-analyzer: drop a few unnecessary assignments and other trivial fixes 2009-09-08 23:46:23 +02:00
Lennart Poettering
b2606cf641 i18n: move \r out of translatable string
https://bugzilla.redhat.com/show_bug.cgi?id=521552
2009-09-07 23:34:31 +02:00
Lennart Poettering
e6a666d8d5 libpulse: introduce PA_BYTES_SNPRINT_MAX and make use of it wherever applicable 2009-09-06 22:33:04 +02:00
Lennart Poettering
dee2aa3f05 pactl: drop unnecessary newlines from pa_log() invocations 2009-08-31 21:45:19 +02:00
Lennart Poettering
5b61a1991c pactl: implement pactl commands for changing volumes/mute stati 2009-08-31 21:42:54 +02:00
Lennart Poettering
aae7054b1c pacmd: handle multi word commands in argv[] properly 2009-08-14 04:12:36 +02:00
Lennart Poettering
5fcb8a3c08 pacmd: port pacmd from select() to poll() so that we notice writer side hangups 2009-08-12 21:42:02 +02:00
Lennart Poettering
49fd8ee72e core-util: replace remaining fixed size destination string functions by _malloc() versions
This helps portability to GNU/Hurd.

Patch originally from Samuel Thibault but modified.

Closes ticket #546
2009-08-01 02:03:22 +02:00
Lennart Poettering
a81244a726 pacat: use zero-copy write calls when playing audio file 2009-07-23 20:01:40 +02:00
Marc-André Lureau
0955e3d45b Base mainloop on pa_rtclock_now()
Move the mainloop to monotonic based time events.

Introduces 4 helper functions:
pa_{context,core}_rttime_{new,restart}(), that fill correctly a
timeval with the rtclock flag set if the mainloop supports it.

Both mainloop-test and mainloop-test-glib works with rt and timeval
based time events. PulseAudio and clients should be fully functional.

This patch has received several iterations, and this one as been
largely untested.

Signed-off-by: Marc-André Lureau <marca-andre.lureau@nokia.com>
2009-06-20 17:29:31 +03:00
Lennart Poettering
75256fb671 pactl: show list of supported ports 2009-06-17 23:40:46 +02:00
Lennart Poettering
6b2ca094ae pactl: implement pactl set-{sink|source}-port 2009-06-17 04:54:39 +02:00
Lennart Poettering
4d874753f5 utils: use pa_path_get_filename() where applicable 2009-06-04 23:19:48 +02:00
Lennart Poettering
5c10b84e0f sndfile: big rework of libsndfile interfacing code
This adds proper channel map handling when reading/writing audio files.
This allows surround .WAV files to be played with the right channel
setup automatically.

This also merges paplay into pacat and adds recording into formatted
files to pacat.
2009-05-26 00:05:28 +02:00
Lennart Poettering
759a9d0cc5 core-util: introduce pa_disable_sigpipe() 2009-05-26 00:02:29 +02:00