Arun Raghavan
978d33b609
Mark shared variables as volatile
...
'n_waiting' and 'n_waiting_for_accept' may be accessed from mulitple
threads, and thus need to be marked as volatile to suppres certain
compiler optimisations. All uses are protected by a mutex, so we don't
need to worry about cache issues (added documentation for this as well).
This addresses bug #738 .
2009-12-06 11:51:17 +00:00
Tanu Kaskinen
f42022a7d3
stream-restore: At startup, create dbus entries only for valid database entries.
2009-12-03 21:50:20 +00:00
Tanu Kaskinen
00debf4243
stream-restore: Add a missing pa_xnew0() call in handle_add_entry().
2009-12-03 21:50:19 +00:00
Tanu Kaskinen
a6b7ac6826
stream-restore: Fix a few assertion misuses with the D-Bus code.
2009-12-03 21:50:19 +00:00
Tanu Kaskinen
e785f728a5
dbus: Add a missing break statement in handle_message_cb().
2009-12-03 21:50:19 +00:00
Tanu Kaskinen
7b1b68ce2c
dbus: Handle the cases when a non-existing interface is detected in an incoming message.
2009-12-03 21:50:19 +00:00
Tanu Kaskinen
4c793cfc76
libpulse: Store pa_stream pointers to hashmaps instead of dynarrays.
...
Since the stream identifiers (channels) are monotonically growing integer, it
isn't a good idea to use them as index to a dynamic array, because the array
will grow all the time. This is not a problem with client connections that
don't create many streams, but, for example, long-running clients that use
libcanberra for playing event sounds, this means that the client connection
effectively leaks memory.
2009-12-03 21:47:46 +00:00
Colin Guthrie
118466638a
Merge remote branch 'tanuk/master'
2009-11-30 14:55:57 +00:00
Lennart Poettering
0fcdc3d15d
Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio
2009-11-23 05:45:33 +01:00
Lennart Poettering
c815441ba1
Merge remote branch 'phish3/master'
2009-11-23 04:48:31 +01:00
Lennart Poettering
675957b9e4
Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio
2009-11-22 21:40:15 +01:00
Joe Marcus Clarke
5aa5c6c196
freebsd: implement pa_get_binary_name
...
Stolen from
http://www.freebsd.org/cgi/cvsweb.cgi/ports/audio/pulseaudio/files/patch-src_pulse_util.c?rev=1.1
and fixed for indentation.
2009-11-21 01:13:35 +01: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
f69e81f226
Makefile.am: added qpaeq to installed scripts
2009-11-20 15:56:43 -08:00
Diego Elio 'Flameeyes' Pettenò
fe0b393f7a
Simplify Makefile.am handling of ALSA-related files.
...
Instead of declaring extra variables for the ALSA profiles and PATHS, and
using EXTRA_DIST for the udev rule, use the dist_ prefix when declaring
them for conditional installation.
This relies on the fact that automake *is* smart enough to know that there
exist *no* conditional dist, and will always distribute all of them.
2009-11-21 00:53:00 +01:00
Diego Elio 'Flameeyes' Pettenò
62278b4b94
Avoid using devname as a variable name.
...
On FreeBSD, devname() is a system function, and was overshadowed.
2009-11-21 00:47:44 +01:00
Diego Elio 'Flameeyes' Pettenò
d963998676
Rename all the signal parameters and variables to something more explicit.
...
Without this change, on FreeBSD you'll be bothered by tons of warnings
about overshadowing signal(2).
2009-11-21 00:46:46 +01:00
Diego Elio 'Flameeyes' Pettenò
2caf59d49f
Since now we have FreeBSD atomic operations, don't require libatomic_ops.
...
This lets the original configure script to pass on FreeBSD.
2009-11-21 00:27:35 +01:00
Diego Elio 'Flameeyes' Pettenò
ca637e5ba4
Simplify handling of NetBSD atomic ops discovery.
...
Instead of having a parameter to enable/disable them (which was also
ignored by the source code side), simply identify NetBSD 5 (when the atomic
ops were implemented the first time) in a $host switch and ignore checking
for libatomic_ops.
2009-11-21 00:17:33 +01:00
Diego Elio 'Flameeyes' Pettenò
40aee60bfa
Merge branch 'master' of git://git.0pointer.de/pulseaudio
2009-11-21 00:10:37 +01:00
Jason Newton
77c6b69656
remove .py extension from qpaeq
2009-11-20 15:07:47 -08:00
Lennart Poettering
fc4cf27569
Merge remote branch 'phish3/master'
2009-11-21 00:05:02 +01:00
Joe Marcus Clarke
f5d8aef0ac
freebsd: fix atomic ops implementations
...
Stole from
http://www.freebsd.org/cgi/cvsweb.cgi/ports/audio/pulseaudio/files/patch-src_pulsecore_atomic.h?rev=1.6
2009-11-21 00:02:36 +01:00
Jason Newton
41853cc7c0
added qpaeq script for GUI equalizer control to src/util
2009-11-20 14:56:07 -08:00
Diego Elio 'Flameeyes' Pettenò
5150a101ef
Check for stow using AC_CHECK_PROG rather than type -p.
...
The type -p check is not compatible with POSIX shells, and indeed fails
when used with the FreeBSD 8 default shell. Instead the AC_CHECK_PROG macro
is written properly to look for the command.
2009-11-20 21:37:16 +01:00
Diego Elio 'Flameeyes' Pettenò
4923f3ca77
Include sys/filio.h if present; this makes use of FIONREAD on Solaris.
...
FIONREAD on OpenSolaris is declared in sys/filio.h. The RTP modules already
rely on the presence of FIONREAD, and check for the header, so this brings
the pipe source and sink modules on par with them.
2009-11-20 21:25:33 +01:00
Diego Elio 'Flameeyes' Pettenò
09a58b6813
Don't declare the variable l if FIONREAD is not defined.
...
This avoids two warnings due to FIONREAD not being defined.
2009-11-20 21:24:46 +01:00
Diego Elio 'Flameeyes' Pettenò
71ebbfb6ef
Fix build on Solaris: pass the third parameter to pa_cloexec_open.
2009-11-20 21:23:53 +01:00
Diego Elio 'Flameeyes' Pettenò
70ba21e78a
Move the platform-specific defines after the compiler has been found.
...
Without this change, on OpenSolaris, it's possible that the compiler will
be reported, by default, as failing to produce executables, since
_XOPEN_SOURCE=600 requires a C99 compiler to compile even the simples of
the programs.
2009-11-20 21:08:05 +01:00
Lennart Poettering
6daf112ce0
alsa: fix minor sampling rate deviations before adjusting the buffer size
2009-11-20 20:27:03 +01:00
Lennart Poettering
bd3467ff2f
alsa: fix log output when the audio device refuses to give us again the same period settings we had before
2009-11-20 20:00:26 +01:00
Lennart Poettering
ba95b1939d
pulse: ask for timing updates both *before* and *after* triggering a stream state change so that in the STARTED/UNDERFLOW callbacks we accurate transport latency information
2009-11-20 19:55:47 +01:00
Lennart Poettering
f05ae357b6
pulse: delay smoother update only when unpausing, not when pausing, since we don't want the timer to advance when we are supposedly already paused
2009-11-20 19:48:08 +01:00
Lennart Poettering
a3b5a94488
pulse: try to fix inaccuracy with uncork timing for streams that are created in corked state
2009-11-20 17:49:30 +01:00
Lennart Poettering
b8acf5586f
daemon: complain if user passes too many arguments
2009-11-20 17:48:04 +01:00
Jason Newton
493d8b2fb7
module-equalizer-sink: add latency of output_q and input_q to get latency calculation
2009-11-20 06:34:46 -08:00
Jason Newton
1178f61280
module-equalizer-sink: switch back to reference dsp implementation - cpu usage doesn't really change and there may be
...
a bug in the vectorized version
2009-11-20 06:34:46 -08:00
Jason Newton
c6c933b4ec
module-equalizer-sink: (re)added output memblockq commented out timing debug statements
2009-11-20 06:34:46 -08:00
Lennart Poettering
9708ecd648
Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio
2009-11-20 01:02:01 +01:00
Lennart Poettering
9033140f18
rygel: fix itemCount property for sources
...
Fixes http://pulseaudio.org/ticket/721
2009-11-18 22:00:31 +01:00
Colin Guthrie
eb5562637b
build-sys: Fix missing trailing slash in 14eaf2
2009-11-16 23:36:44 +00:00
Sjoerd Simons
14eaf245c6
build-sys: Make sure all alsa path config files are installed
...
While all alsa path configuration files were in EXTRA_DIST not all of them were
in in alsapaths_DATA. Fixed by only defining the list in one place
2009-11-15 01:13:02 +01:00
Colin Guthrie
dad36acea3
device-manager: Update docs version -> 0.9.20
...
Third time is a charm... maybe.
2009-11-11 17:24:57 +00:00
Lennart Poettering
2294642762
core: make cpuid code compile cleanly with 32bit PIC
2009-11-11 04:50:32 +01:00
Lennart Poettering
d9b5bbca01
core: adjust volume only when there is actually a memory block
...
Fixes an assert that is hit in somne niche cases:
https://bugzilla.redhat.com/show_bug.cgi?id=533482
2009-11-11 04:18:10 +01:00
Wim Taymans
f3866f2635
protocol: use the right sample rate for sources
...
Use the correct sample rate for reporting about the timing.
2009-11-10 13:21:55 +01:00
Colin Guthrie
9e45f198d0
device-manager: Update docs version -> 0.9.20
2009-11-09 21:57:07 +00:00
Lennart Poettering
f202af17b7
ramping: minor cleanups
2009-11-05 22:58:15 +01:00
Lennart Poettering
4d62f159a7
Merge remote branch 'origin/merge-queue'
...
Conflicts:
src/pulsecore/sink-input.c
src/pulsecore/sink.c
2009-11-05 22:54:42 +01:00
Lennart Poettering
721e32b473
jack: never try to autoconnect to MIDI ports
...
Original patch supplied by 'adi'
http://pulseaudio.org/ticket/669
2009-11-05 05:18:10 +01:00