Commit graph

2284 commits

Author SHA1 Message Date
Marc-André Lureau
01f71ac7a1 libpulse: add proplist_from_string 2009-01-13 16:59:46 +02:00
Marc-André Lureau
9e978c9770 core: report remaining shared objects when cleanup 2009-01-13 16:59:45 +02:00
Marc-André Lureau
ebb903a376 core: add pa_source_update_proplist 2009-01-13 16:59:45 +02:00
Marc-André Lureau
9444347c06 core: add pa_sink_update_proplist 2009-01-13 16:59:45 +02:00
Lennart Poettering
f67066b362 Port sine modules to pa_memchunk_sine() 2009-01-12 19:49:50 +01:00
Lennart Poettering
b8e6aae08e add new API function pa_memchunk_sine()
Ease generation of sine signals. Try to make the repeatable sine
memblock fit into a single mempool slot.
2009-01-12 19:48:44 +01:00
Lennart Poettering
949de8156e Extend command name lookup tables to cover complete protocol
Makes it easier to debug things.
2009-01-12 19:46:17 +01:00
Lennart Poettering
aff72437a6 Fix suspending of all sinks/sources
pasuspender issues a SUSPEND_ALL requests for suspending all
sinks/sources at once. This has been broken due to an ill-placed sanity
checked.
2009-01-12 19:44:21 +01:00
Lennart Poettering
d94d39d635 read base volume only in proto 15 2009-01-12 19:44:08 +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
947a828943 fix version check 2009-01-12 19:33:38 +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
8a3dc57df2 make module-sine-source actually work 2009-01-10 03:33:10 +01:00
Lennart Poettering
4e8ada521a show maximum usable slot size 2009-01-10 02:55:57 +01:00
Lennart Poettering
c850aa0c5b Add new pa_reduce() and pa_gcd() functions 2009-01-10 02:53:57 +01:00
Lennart Poettering
98049fbf81 make things compile again 2009-01-08 23:31:05 +01:00
Lennart Poettering
7b52840adc add a few missing parens 2009-01-08 23:30:51 +01:00
Lennart Poettering
c2002dcd1f Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio 2009-01-08 21:18:15 +01:00
Lennart Poettering
9fc726c6d7 Add new test source module-sine-source 2009-01-08 21:17:58 +01:00
Lennart Poettering
e5c093897e A few minor cleanups and updates 2009-01-08 21:13:18 +01:00
Lennart Poettering
aff7768fb1 Add new debuuging API pa_memchunk_dump_to_file() 2009-01-08 21:12:03 +01:00
Marc-André Lureau
7e6309c77c bluetooth: Update sbc from git upstream.
It contains encoding fixes, pass the conformance tests, and is now
vectorizable. Next update might include SSE and/or Neon code.
2009-01-08 19:17:37 +02:00
Marc-André Lureau
d096ad78d3 bluetooth: add update-sbc and friends
Grr.. You can't do:

SBC_FILES = a b c
libsbc_SOURCES = $(addprefix modules/bluetooth/,$(SBC_FILES))

With automake...

So I $(strip 'modules/bluetooth/') instead.
2009-01-08 19:16:59 +02:00
Marc-André Lureau
8e200ed0ce build: run some tests during make check (and distcheck)
Run simple core tests during 'check'.

I plan to add more automated tests, including pulseaudio instances. I
did some for maemo, they still need some love.

Note: it would be funky to enable Automake 'color-tests' option when
this will be released (1.10.2 and from automake git)
2009-01-08 17:21:10 +02:00
Marc-André Lureau
de57edd5d8 build: Use proper -disable-static instead of removing .a
Don't mess up with autofoo, to pass 'make distcheck' again.

Note: I am not convinced by the 'rm -f *.la', I know it can solve
issue, but it should be handled by distributions probably...
2009-01-08 15:12:25 +02:00
Marc-André Lureau
c8b3d8b79c build: add atomic.h and refcnt.h to libpulsecommon
I choose libpulsecommon over libpulsecore because some files
from libpulsecommon (eg. once.{c,h}) include them.
2009-01-08 15:12:25 +02:00
Marc-André Lureau
a206ac0fb5 build: Don't include builddir, but only srcdir.
I guess it used to be builddir because some of the files under
src/modules are generated. However, they are generated at dist time,
not at compile time.
2009-01-08 15:11:39 +02:00
Marc-André Lureau
dd9ca70759 build: use pkg-config for X11
According to Daniel, AC_PATH_XTRA is sort-of deprecated.

This patch changes the configure arguments, --x-includes=dir and
--x-libraries=dir, which are now removed and use standard pkg-config.

It also replaces --with{,out}-x with --{dis,en}able-x11, which is the
same as other optionnal dependencies.

(this patch was done in an attempt to solve a build issue on maemo, it
turns out it didn't help)
2009-01-08 11:52:02 +02:00
Lennart Poettering
c2450501af Prefer mixer controls with volumes over switches
When we look for a mixer control prefer controls that have both volume
and a mute switch over those that have only a volume switch over those
that only have a mute switch.

Originally pointed out by Adel Gadllah.
2009-01-08 01:03:42 +01:00
Sean McNamara
81cd21969a --check: Updated manpage slightly and pulseaudio --help slightly.
It's good for new users - I didn't know about the convention for
daemon checks to only bump the exit code until, say, a year after I
first installed Linux. Of course, we could also put an entire guide to
using Linux in our manpage, or tell users how to check the exit code
with $?, or how to get to the terminal, or an example script, ... (you
can see how this would quickly get out of control). So just a little
bit more hint should be good for now. John? Does this work for you?

Sean

Signed-off-by: Lennart Poettering <lennart@poettering.net>
2009-01-07 23:30:02 +01:00
Lennart Poettering
2f681a3d18 Merge commit 'vudentz/master' 2009-01-07 22:59:25 +01:00
chocolateboy
78e636e629 Fix typo in log message: s/Recevied/Received/
Signed-off-by: Lennart Poettering <lennart@poettering.net>
2009-01-07 03:08:40 +01:00
Luiz Augusto von Dentz
e7e6f86bbe Fix sending wrong codec capability length. 2009-01-06 11:02:16 -03:00
Luiz Augusto von Dentz
1a96c9b0a6 Fix send and recv message sizes. 2009-01-06 11:00:44 -03:00
Luiz Augusto von Dentz
be49c92a38 Send packets with proper size. 2009-01-05 19:12:43 -03:00
Tom Bamford
fe2b8c359b Multicast SDP packets sent with same IP TTL as RTP packets
Signed-off-by: Lennart Poettering <lennart@poettering.net>
2009-01-05 19:56:01 +01:00
Lennart Poettering
2ff20ceccb Rework handling of the PA_SINK_LATENCY/PA_SOURCE_LATENCY flags 2008-12-24 00:58:34 +01:00
Lennart Poettering
fb4c111d18 Implement base_volume for ALSA sinks/sources 2008-12-24 00:57:37 +01:00
Lennart Poettering
6130c5c11b Add "base volume" field to sinks/sources 2008-12-24 00:49:43 +01:00
Lennart Poettering
3e3c103ed9 Add APIs to pass pa_volume_t fields in a tagstruct 2008-12-24 00:46:02 +01:00
Lennart Poettering
6342053b34 Add new API functions pa_volume_snprint() and pa_sw_volume_snprint_dB() 2008-12-24 00:45:06 +01:00
Lennart Poettering
f24e4c19c3 Merge commit 'vudentz/master' 2008-12-23 18:31:12 +01:00
Lennart Poettering
c2bd8dc517 fix a gcc warning 2008-12-23 15:15:21 +01:00
Lennart Poettering
22c3373713 If we cannot open an ALSA device with SND_PCM_NO_AUTO_FORMAT retry without
This should fix compatibility with some sound cards which only support
24 bit packed samples.
2008-12-23 15:14:28 +01:00
Luiz Augusto von Dentz
7323e1a0a8 Update module-bluetooth-device to the new ipc. 2008-12-22 14:24:07 -03:00
Luiz Augusto von Dentz
5db081a898 Disable warnings for bluetooth-device-module. 2008-12-22 14:24:06 -03:00
Lennart Poettering
03aa91dea7 make sure we don't hit an assert when we issue two rewind requests in a
single iteration

Closes rhbz 472757.
2008-12-21 17:55:29 +01:00
Lennart Poettering
606c9caa0b Implement PA_SOURCE_MESSAGE_GET_LATENCY
The pipe source needs to implement PA_SOURCE_MESSAGE_GET_LATENCY since
we'll otherwise hit an assert.

Closes #424.
2008-12-21 13:34:56 +01:00
Lennart Poettering
10cc4ba1ca Use FIONREAD instead of TIOCINQ
On Linux the two ioctls FIONREAD and TIOCINQ share the same number.
However TIOCINQ is used for terminals while FIONREAD is used (among
others) for sockets and pipes. Hence use FIONREAD here since it seems
more appropriate.
2008-12-21 13:33:32 +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