Commit graph

855 commits

Author SHA1 Message Date
Lennart Poettering
f6763917ee autospawn: refuse autospawning if process disabled waitpid() 2009-07-24 18:22:13 +02:00
Lennart Poettering
88d5749f6a Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio
Conflicts:
	src/daemon/main.c
2009-07-23 15:18:06 +02:00
Lennart Poettering
23039af842 client: allow zero-copy writing to the stream 2009-07-20 15:49:33 +01:00
Colin Guthrie
61fefd67da introspect: Fix two memory issues in port handling code.
First one is a simple typo on an error condition that would have likely caused issues if it ever cropped up.
Second issue is that port information is never actually freed if everything works fine.
2009-07-12 21:07:58 +01:00
Lennart Poettering
b174a51120 libpulse: minor cleanups 2009-07-01 14:26:07 +02:00
Colin Guthrie
59376b039e introspect: Fix a bug in sink/source info protocol handling related to ports.
Previously the active_profile was extracted from the tagstruct regardless of
the protocol version which caused errors while speaking to older version
servers.
2009-06-29 22:52:31 +01:00
Tanu Kaskinen
c266595058 Merge branch 'master' into dbus-work 2009-06-29 18:55:12 +03:00
Diego Elio 'Flameeyes' Pettenò
1ca7603109 Add missing headers includes for FreeBSD.
This removes the implicit declarations of send() and pthread_sigmask().
2009-06-29 17:42:07 +02:00
Tanu Kaskinen
0bc538b08c Merge branch 'master' into dbus-work
Conflicts:
	src/daemon/daemon-conf.c
	src/daemon/daemon-conf.h
	src/daemon/main.c
	src/pulsecore/dbus-util.h
2009-06-29 18:35:06 +03:00
Lennart Poettering
9217b47b19 timeval: don't create the wrong illusion that nsecs should be stored in pa_usec_t 2009-06-23 00:16:42 +02:00
Lennart Poettering
f3bbbd0fd3 rtclock: document that we fallback to wallclock time if monotonic time is not supported 2009-06-23 00:15:57 +02:00
Lennart Poettering
f753ef2a23 rtclock: enable rtclock for our own mainloop implementations 2009-06-22 23:49:40 +02:00
Marc-André Lureau
e4d914c945 rtclock: fix issues found by Lennart 2009-06-20 17:29:34 +03: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
Marc-André Lureau
125c528896 pulse: move pa_rtclock_now in pulsecommon 2009-06-20 17:29:08 +03:00
Marc-André Lureau
5dcdd5e358 perl -p -i -e 's/pa_rtclock_usec/pa_rtclock_now/g' find . -name '*.[ch]' 2009-06-19 19:04:04 +03:00
Lennart Poettering
46b8ca21d1 native-protocol: allow enumerating ports 2009-06-17 23:17:37 +02:00
Lennart Poettering
914ef89e55 libpulse: implement client side for sink/source port selection commands 2009-06-17 04:54:11 +02:00
Lennart Poettering
bd8e043a52 bluetooth: return sensible error code in set_profile() 2009-06-17 04:51:57 +02:00
Lennart Poettering
083b17b28a volume,channelmap: reimplement a couple of calls based on channel masks 2009-06-17 03:09:28 +02:00
Lennart Poettering
697b8de96f malloc: implement pa_xrenew() 2009-06-17 03:07:42 +02:00
Lennart Poettering
4f36cc76f2 channelmap: make sure a mask is generated is 64 bit int 2009-06-17 03:06:54 +02:00
Lennart Poettering
26d5f28f8a version: fix prefix in PA_CHECK_VERSION macro 2009-06-17 03:06:13 +02:00
Lennart Poettering
d9939690ed channelmap: implement pa_channel_position_from_string() 2009-06-17 03:05:30 +02:00
Lennart Poettering
64b0f38b67 volume: implement functions for multiplicating a cvolume with a scalar 2009-06-17 03:04:21 +02:00
Tanu Kaskinen
5babbaafb2 daemon: Implement the DBus server lookup service. 2009-06-12 07:22:33 +03:00
Lennart Poettering
f13bbd576f prop: introduce new PA_PROP_DEVICE_INTENDED_ROLES property 2009-06-08 16:58:45 +02:00
Lennart Poettering
6601e09929 simple: set ADJUST_LATENCY by default 2009-05-27 23:18:55 +02:00
Lennart Poettering
699bd542f3 libpulse: introduce PA_CHECK_VERSION macro 2009-05-26 22:31:05 +02:00
Lennart Poettering
8b180b6368 volume: implement pa_cvolume_{scale|max|avg}_mask() 2009-05-25 23:55:44 +02:00
Lennart Poettering
8f23a2edb5 proplist: add two new generic properties, media.copyright and media.software 2009-05-25 23:52:31 +02:00
Lennart Poettering
01fa34ba8a channelmap: introduce pa_channel_map_mask() and pa_channel_position_mask_t 2009-05-25 23:51:34 +02:00
Lennart Poettering
261a4830fb sample: introduce pa_proplist_setp() 2009-05-25 23:50:18 +02:00
Lennart Poettering
346a708c2c sample: introduce pa_sample_format_is_{le,be,ne,re}() 2009-05-25 23:49:47 +02:00
Lennart Poettering
f80928495a channelmap: document how apple's/microsoft's channel names map to ours 2009-05-24 01:03:34 +02:00
Lennart Poettering
000bdb8d25 volume: change pa_volume_t mapping to cubic 2009-05-22 01:30:54 +02:00
Lennart Poettering
905c8004a0 volume: introduce pa_cvolume_{get|set}_position() 2009-05-13 15:20:45 +02:00
Marc-André Lureau
86caf4520f context: don't fail if session bus is not there
Also invert the order of bus tracking since we expect session_bus to
be present when we check for it. Although that should not change
anything in practise.
2009-05-12 01:33:37 +02:00
Lennart Poettering
a714861cc1 channelmap: add pa_channel_map_has_position() 2009-05-08 22:49:47 +02:00
Lennart Poettering
d4b10d838a sample: correctly pass s24-32 formats 2009-05-01 04:12:24 +02:00
Lennart Poettering
6773d000e3 util: if NULL is passed to pa_path_get_filename() just hand it through 2009-04-19 19:02:16 +02:00
Marc-André Lureau
344eea4f58 pulse/context: when NOFAIL, don't try_next_connection() if c->client 2009-04-17 22:41:26 +02:00
Lennart Poettering
237a9e12f8 volume: increase dB range to -90dB
Increasing the volume range to -90dB has the benefit of corresponding
with a volume decrease from the full 16 bit signal to 0.

This also makes us a bit more like traditional stereos
2009-04-13 22:41:44 +02:00
Lennart Poettering
0ac038e591 client-conf-x11: unbreak autospawn due to stale X11 properties
If the X11 property data is from the same session than the client the
client may do autospawning in case the X11 property data is stale.

Closes #518.
2009-04-13 22:28:35 +02:00
Lennart Poettering
0aed5ea2e1 client-conf: when is set, disable autospawn setting 2009-04-13 22:25:43 +02:00
Lennart Poettering
4cc4cbd641 client-conf: make setting a default server independant from the autospawn setting 2009-04-13 22:25:09 +02:00
Lennart Poettering
43650de1ab client-conf: modernize a few things 2009-04-13 22:22:22 +02:00
Lennart Poettering
6d218e9634 api: introduce PA_VOLUME_MAX 2009-04-13 04:39:45 +02:00
Finn Thain
80e18c8da3 make dbus optional during build
On Tue, 31 Mar 2009, Lennart Poettering wrote:

[snip]
>
> I have now merged your patch. I had to change a few things to make it
> apply cleanly. Since I have no access to Solaris I am unable to test
> this though, so please check if things still work for you.
>
> I also worked around the realpath() issue mostly. It should work fine on
> Solaris now, as well.

Thanks. 0.9.15-test7 seems to work fine.

The only new issue is that configure --without-dbus no longer builds. I
don't need dbus for my purposes (network audio server) and it seems that
dbus is not included with Solaris. A patch for this follows.

Finn
2009-04-10 02:14:07 +02:00
Lennart Poettering
14e89d4ecd when calculating volume from dB use ceil() 2009-04-08 03:47:48 +02:00