Commit graph

161 commits

Author SHA1 Message Date
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
Lennart Poettering
2d94c93957 pacat: add missing newline 2009-04-14 01:03:34 +02:00
Lennart Poettering
aa1ad0df18 in verbose mode log buffer attr changes 2009-04-01 00:35:37 +02:00
Lennart Poettering
ff38eaf677 Merge commit 'coling/lgpl21' 2009-03-03 21:44:56 +01:00
Colin Guthrie
86dee05aec Use LGPL 2.1 on all files previously using LGPL 2 2009-03-03 20:23:02 +00:00
Lennart Poettering
297515a39e pass profile priority value to clients 2009-03-03 00:32:10 +01:00
Lennart Poettering
4505bc9cc6 introduce default channel map in addition to the default sample spec 2009-02-21 16:32:42 +01:00
Marc-André Lureau
bb52a6753b padsp: don't use si if it's NULL 2009-02-19 04:55:28 +01:00
Marc-André Lureau
67b0baecc4 pacat: remove unused variable 2009-02-19 04:55:11 +01:00
Marc-André Lureau
c3eb9086b8 pactl: return in case of error reading file (avoid using freed d) 2009-02-19 04:54:18 +01:00
Marc-André Lureau
93ed27d561 pactl: check if pa_context_connect succeed 2009-02-19 04:53:33 +01:00
Marc-André Lureau
2aeab75c68 paplay: check if pa_context_connect() succeed 2009-02-19 04:53:20 +01:00
Lennart Poettering
823431e447 allow sending meta/policy events to clients 2009-02-12 03:18:05 +01:00
Lennart Poettering
ae06517286 make pacmd work in a pipe 2009-02-04 21:22:18 +01:00
Lennart Poettering
5449d793ae swap argument order of pa_cvolume_get_balance() to be a bit more systematic 2009-01-27 02:45:37 +01:00
Lennart Poettering
601293d346 implement pactl set-card-profile 2009-01-21 03:04:19 +01:00
Lennart Poettering
86f3fb8b12 show active profile 2009-01-20 20:33:28 +01:00
Lennart Poettering
a65c2c7336 add client API for querying card information 2009-01-20 03:25:29 +01:00
Lennart Poettering
8c4e2be05b include sink/source state in pactl output 2009-01-19 23:55:22 +01:00
Lennart Poettering
5f6641cfdd Beef pactl output up a bit 2009-01-19 23:07:34 +01:00
Lennart Poettering
edf88a5150 don't show autoload flag anymore since it is obsolete 2009-01-15 20:48:29 +01:00
Lennart Poettering
29c7a28817 kill autoload stuff as planned 2009-01-15 20:07:13 +01:00
Lennart Poettering
b9e96e00cf for record streams fill in the latency as the fragsize 2009-01-12 19:34:12 +01:00
Lennart Poettering
b6804eefea Make sure we don't drop any data on the client side 2009-01-10 03:33:27 +01:00
Lennart Poettering
63fc26ed03 Allow access("/dev/dsp", W_OK) succeed
Some stupid apps (such as X-lite Softphone) check for W_OK on /dev/dsp.
This is of course crazy but easy for us to support.

Closes rhbz #474313
2008-12-18 15:24:02 +01:00
Lennart Poettering
6ff9c1fb62 don't set the volume of pacat unless it is explicitly set 2008-10-22 22:48:53 +02:00
Lennart Poettering
54afcf2598 inform dsp_empty_socket() *after* we emptied the dsp socket, that it is now empty 2008-10-02 01:02:31 +02:00
Lennart Poettering
a609e4a700 check for errors returned by pa_context_connect() 2008-09-05 01:31:39 +02:00
Lennart Poettering
3f6f13f902 use pa_channel_map_compatible() where applicable 2008-09-05 01:31:17 +02:00
Lennart Poettering
456284918a update documentation and help texts for s32le/s32be sample types 2008-09-05 00:39:36 +02:00
Lennart Poettering
cbd8e60f6c use PA_STREAM_EARLY_REQUESTS for OSS streams 2008-09-03 19:51:12 +02:00
Lennart Poettering
13018d62c1 fix a few compiler warnings on older gcc 2008-08-29 23:53:55 +02:00
Lennart Poettering
b7026bf248 add a few more gcc warning flags and fix quite a few problems found by doing so 2008-08-19 22:39:54 +02:00
Lennart Poettering
432b4e5f7d don't use PA_GCC_UNUSED anymore 2008-08-09 16:20:29 +02:00
Lennart Poettering
756fac8d04 add new switch --disallow-exit 2008-08-06 19:39:12 +02:00
Lennart Poettering
f1d2bf8408 add i18n support 2008-08-06 18:54:13 +02:00
Lennart Poettering
e0dd72afcb fix error path (spotted by Coling Guthrie) 2008-08-05 16:31:17 +02:00
Lennart Poettering
7755f759aa use (uint32_t) -1 to signify default buffer_attr values instead of 0, to allow prebuf=0 2008-06-27 00:34:17 +02:00
Lennart Poettering
822366a653 remove remaining $ 2008-06-18 22:38:32 +02:00
Lennart Poettering
8ae83d618e get rid of svn $ keywords 2008-06-18 23:23:21 +03:00
Lennart Poettering
dd662d5c57 properly handle if pa_runtime_path() fails
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2474 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-21 22:43:22 +00:00
Lennart Poettering
045c1d602d merge glitch-free branch back into trunk
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2445 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-15 23:34:41 +00:00
Lennart Poettering
e382f2233f merge r2183 from prepare-0.9.10
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2199 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-03-31 22:05:10 +00:00
Lennart Poettering
1be481f481 merge r2182 from prepare-0.9.10
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2198 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-03-31 22:04:21 +00:00
Lennart Poettering
6ad7621b61 work around solaris printf %s and NULL string brain damage
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2117 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-03-14 13:32:33 +00:00