profile/ivi/pulseaudio.git
18 years agoFix up build structure for platform dependent modules. Also add implementation
Pierre Ossman [Mon, 11 Sep 2006 07:56:03 +0000 (07:56 +0000)]
Fix up build structure for platform dependent modules. Also add implementation
on Win32 for pa_once().

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1395 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoUse platform independent sleep.
Pierre Ossman [Mon, 11 Sep 2006 07:54:41 +0000 (07:54 +0000)]
Use platform independent sleep.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1394 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoFix typo.
Pierre Ossman [Mon, 11 Sep 2006 07:14:39 +0000 (07:14 +0000)]
Fix typo.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1393 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoignore flist-test in the correct dir
Lennart Poettering [Sat, 9 Sep 2006 23:59:26 +0000 (23:59 +0000)]
ignore flist-test in the correct dir

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1392 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoignore flist-test
Lennart Poettering [Sat, 9 Sep 2006 23:58:03 +0000 (23:58 +0000)]
ignore flist-test

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1391 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoupdate Makefile
Lennart Poettering [Sat, 9 Sep 2006 23:56:58 +0000 (23:56 +0000)]
update Makefile

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1390 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agomake pa_mutex_new() and pa_cond_new() succeed in all cases. Similar behaviour to...
Lennart Poettering [Sat, 9 Sep 2006 23:55:58 +0000 (23:55 +0000)]
make pa_mutex_new() and pa_cond_new() succeed in all cases. Similar behaviour to pa_xmalloc().

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1389 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoadd pa_once testing code
Lennart Poettering [Sat, 9 Sep 2006 23:54:56 +0000 (23:54 +0000)]
add pa_once testing code

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1388 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agorework pa_once once again, because the once function needs to have terminated before...
Lennart Poettering [Sat, 9 Sep 2006 23:54:19 +0000 (23:54 +0000)]
rework pa_once once again, because the once function needs to have terminated before pa_once returns, regardless whether the local call executes it or another thread does.

With the previous code it might happen that an long-running initializing in a once function is not terminated yet when another thread thinks it already is.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1387 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoupdate for newer APIs: replace direct usage of libatomic_ops by usage of our own...
Lennart Poettering [Sat, 9 Sep 2006 22:59:17 +0000 (22:59 +0000)]
update for newer APIs: replace direct usage of libatomic_ops by usage of our own atomic.h; remove pa_once implementation; always use our pa_once implementation instead of the POSIX version

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1386 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoimplement trival pa_once API based on atomic operations
Lennart Poettering [Sat, 9 Sep 2006 22:55:51 +0000 (22:55 +0000)]
implement trival pa_once API based on atomic operations

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1385 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoadd static initializer PA_ATOMIC_INIT()
Lennart Poettering [Sat, 9 Sep 2006 22:54:11 +0000 (22:54 +0000)]
add static initializer PA_ATOMIC_INIT()

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1384 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoadd a test program for the free list
Lennart Poettering [Sat, 9 Sep 2006 21:09:55 +0000 (21:09 +0000)]
add a test program for the free list

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1383 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoimplement a simple lock-free free list
Lennart Poettering [Sat, 9 Sep 2006 21:05:31 +0000 (21:05 +0000)]
implement a simple lock-free free list

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1382 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoadd a tiny wrapper around libatomic_ops: pa_atomic_int_t and pa_atomit_ptr_t.
Lennart Poettering [Fri, 8 Sep 2006 15:43:44 +0000 (15:43 +0000)]
add a tiny wrapper around libatomic_ops: pa_atomic_int_t and pa_atomit_ptr_t.

Reasoning:

This wrapper fixes a few API issues I found with atomic_ops:

 * AO_t is an int, which can be written to with "=". pa_tomic_int_t however is
   a struct which due to type-safety enforces proper access with
   pa_atomic_xx(). (Inspired by the way the Linux kernel handles this)

 * AO_load()'s parameter is lacking a "const"

 * Explicitly choosing the proper memory barrier for each call is very
   difficult and especially hard to debug because most CPUs support only two
   different barrier types which the eight types defined by atomic_ops are
   mapped to. Most other software (i.e. glib, Linux kernel) which provides
   atomic variable access usually do a full barrier in all cases and so should
   we. Eventually we might choose to add additional memory barrier calls, in
   which case we can add special versions of the current function with special
   suffixes.

 * The function names are unnecesarily long

 * Atomic pointer accesses are only supported with manual casts.

The new pa_atomic_xxx interface borrows heavily from the GLib and Linux kernel
atomicity API, though it is different from both of them.

In addition this abstract API makes it easy to port PA to different atomicty
APIs, if libatomic_ops should ever become out-of-fashion or if the system OS
supports atomic primitives anyway.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1381 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agodon't maintain a list of allocated mempool slots, we don't use it anyway
Lennart Poettering [Thu, 7 Sep 2006 20:17:25 +0000 (20:17 +0000)]
don't maintain a list of allocated mempool slots, we don't use it anyway

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1380 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agomake pa_stream thread-safe: use new refcounting system, protect access using mutexes
Lennart Poettering [Thu, 7 Sep 2006 19:08:19 +0000 (19:08 +0000)]
make pa_stream thread-safe: use new refcounting system, protect access using mutexes

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1379 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoadd missing channel names (fixes a segfault when parsing invalid channel maps)
Lennart Poettering [Thu, 7 Sep 2006 13:31:53 +0000 (13:31 +0000)]
add missing channel names (fixes a segfault when parsing invalid channel maps)

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1378 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agofix alsa-sink example
Lennart Poettering [Thu, 7 Sep 2006 13:29:59 +0000 (13:29 +0000)]
fix alsa-sink example

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1377 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agodon't hit an assert in the client if posix shm is not available
Lennart Poettering [Wed, 6 Sep 2006 22:19:54 +0000 (22:19 +0000)]
don't hit an assert in the client if posix shm is not available

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1376 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agofix indentation
Lennart Poettering [Wed, 6 Sep 2006 22:19:11 +0000 (22:19 +0000)]
fix indentation

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1375 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agofix a bogus debug line
Lennart Poettering [Wed, 6 Sep 2006 21:37:09 +0000 (21:37 +0000)]
fix a bogus debug line

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1374 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoimplement a few more ioctl()s, including a subset of SNDCTL_DSP_GETOPTR. Just enough...
Lennart Poettering [Wed, 6 Sep 2006 19:47:53 +0000 (19:47 +0000)]
implement a few more ioctl()s, including a subset of SNDCTL_DSP_GETOPTR. Just enough to make JavaSound work.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1373 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoremove yet another occurence of pthread_yield() by pa_thread_yield()
Lennart Poettering [Mon, 4 Sep 2006 22:38:41 +0000 (22:38 +0000)]
remove yet another occurence of pthread_yield() by pa_thread_yield()

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1372 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoadd accessor functions for the userdata attached to a pa_thread object
Lennart Poettering [Mon, 4 Sep 2006 22:15:15 +0000 (22:15 +0000)]
add accessor functions for the userdata attached to a pa_thread object

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1371 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agofix pa_thread_is_running() for foreign threads; fix a memory leak for foreign threads
Lennart Poettering [Mon, 4 Sep 2006 22:04:33 +0000 (22:04 +0000)]
fix pa_thread_is_running() for foreign threads; fix a memory leak for foreign threads

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1370 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoport the threaded mainloop to our new abstract mutex/thread API
Lennart Poettering [Mon, 4 Sep 2006 21:29:17 +0000 (21:29 +0000)]
port the threaded mainloop to our new abstract mutex/thread API

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1369 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agomake pa_thread_self() return a sensible pointer on foreign threads
Lennart Poettering [Mon, 4 Sep 2006 21:28:34 +0000 (21:28 +0000)]
make pa_thread_self() return a sensible pointer on foreign threads

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1368 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoadd missing g_type_init()
Lennart Poettering [Sat, 2 Sep 2006 15:18:56 +0000 (15:18 +0000)]
add missing g_type_init()

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1367 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agorework handling of srcdir != builddir (patch from Flameeyes)
Lennart Poettering [Sat, 2 Sep 2006 14:59:12 +0000 (14:59 +0000)]
rework handling of srcdir != builddir (patch from Flameeyes)

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1366 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoinclude PTRHEAD_LIBS in pkg-config file (patch from Flameeyes)
Lennart Poettering [Sat, 2 Sep 2006 14:57:50 +0000 (14:57 +0000)]
include PTRHEAD_LIBS in pkg-config file (patch from Flameeyes)

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1365 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoupdate acx_pthread.m4
Lennart Poettering [Sat, 2 Sep 2006 14:56:41 +0000 (14:56 +0000)]
update acx_pthread.m4

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1364 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoallow building when srcdir != builddir (patch from Flameeyes)
Lennart Poettering [Sat, 2 Sep 2006 12:51:44 +0000 (12:51 +0000)]
allow building when srcdir != builddir (patch from Flameeyes)

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1363 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agofix a few autoconf warnings (patch by Flameeyes)
Lennart Poettering [Sat, 2 Sep 2006 12:45:53 +0000 (12:45 +0000)]
fix a few autoconf warnings (patch by Flameeyes)

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1362 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agofix esdcompat for non-gnu systems
Lennart Poettering [Sat, 2 Sep 2006 12:28:40 +0000 (12:28 +0000)]
fix esdcompat for non-gnu systems

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1361 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agomake esdcompat executable
Lennart Poettering [Sat, 2 Sep 2006 12:28:17 +0000 (12:28 +0000)]
make esdcompat executable

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1360 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoMerge FreeBSD compatibility patch (from Flameeyes)
Lennart Poettering [Sat, 2 Sep 2006 12:03:18 +0000 (12:03 +0000)]
Merge FreeBSD compatibility patch (from Flameeyes)

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1359 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoFix call to pa_mutex_new().
Pierre Ossman [Fri, 1 Sep 2006 19:06:44 +0000 (19:06 +0000)]
Fix call to pa_mutex_new().

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1358 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoAdd pthread_once() equivalent support.
Pierre Ossman [Fri, 1 Sep 2006 18:39:55 +0000 (18:39 +0000)]
Add pthread_once() equivalent support.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1357 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoThread implementation for Win32.
Pierre Ossman [Fri, 1 Sep 2006 18:16:55 +0000 (18:16 +0000)]
Thread implementation for Win32.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1356 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agofix a race condition with stream connection vs. latency measuremtn (found by theBear)
Lennart Poettering [Fri, 1 Sep 2006 00:24:32 +0000 (00:24 +0000)]
fix a race condition with stream connection vs. latency measuremtn (found by theBear)

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1355 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoMake sure libatomic_ops.a isn't included in win32 builds as libtool doesn't
Pierre Ossman [Thu, 31 Aug 2006 16:39:53 +0000 (16:39 +0000)]
Make sure libatomic_ops.a isn't included in win32 builds as libtool doesn't
like static libs in dlls. Everything is in the headers anyway, so we do not
need it.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1354 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoAlso wrap yield functionality so that it can be platform independent.
Pierre Ossman [Thu, 31 Aug 2006 16:13:07 +0000 (16:13 +0000)]
Also wrap yield functionality so that it can be platform independent.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1353 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agowork around bug in firefox which apparently misuses access() as NULL pointer test...
Lennart Poettering [Thu, 31 Aug 2006 15:31:33 +0000 (15:31 +0000)]
work around bug in firefox which apparently misuses access() as NULL pointer test. Original patch by "alon". (Closes #27)

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1352 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agodefine AO_REQUIRE_CAS in the Makefile instead of each source file, effectively revers...
Lennart Poettering [Thu, 31 Aug 2006 15:20:43 +0000 (15:20 +0000)]
define AO_REQUIRE_CAS in the Makefile instead of each source file, effectively reversing r1348

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1351 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoupdate todo
Lennart Poettering [Thu, 31 Aug 2006 15:17:40 +0000 (15:17 +0000)]
update todo

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1350 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agofix handling of "running" variable
Lennart Poettering [Wed, 30 Aug 2006 17:12:35 +0000 (17:12 +0000)]
fix handling of "running" variable

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1349 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoAdd AO_REQUIRE_CAS as we do.
Pierre Ossman [Wed, 30 Aug 2006 17:01:10 +0000 (17:01 +0000)]
Add AO_REQUIRE_CAS as we do.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1348 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoMake sure the libatomic_ops lib is included.
Pierre Ossman [Wed, 30 Aug 2006 16:55:37 +0000 (16:55 +0000)]
Make sure the libatomic_ops lib is included.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1347 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoRemove check for libatomic_ops library as some systems have no (zero, nada)
Pierre Ossman [Wed, 30 Aug 2006 14:44:15 +0000 (14:44 +0000)]
Remove check for libatomic_ops library as some systems have no (zero, nada)
symbols in it.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1346 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoWe need to have a callback when changing volume or we might deadlock.
Pierre Ossman [Wed, 30 Aug 2006 13:02:29 +0000 (13:02 +0000)]
We need to have a callback when changing volume or we might deadlock.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1345 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoadd a threading primitive API
Lennart Poettering [Tue, 29 Aug 2006 19:51:14 +0000 (19:51 +0000)]
add a threading primitive API

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1344 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agomake pa_mempool_stat thread-safe/lock-free
Lennart Poettering [Tue, 29 Aug 2006 02:01:39 +0000 (02:01 +0000)]
make pa_mempool_stat thread-safe/lock-free

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1343 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agomodify memory block reference counting to use the new reference counting API
Lennart Poettering [Tue, 29 Aug 2006 01:16:47 +0000 (01:16 +0000)]
modify memory block reference counting to use the new reference counting API

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1342 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoadd lock-free reference counting macros, based on libatomic-ops
Lennart Poettering [Tue, 29 Aug 2006 01:15:51 +0000 (01:15 +0000)]
add lock-free reference counting macros, based on libatomic-ops

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1341 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoadd libatomic-ops to hard dependencies
Lennart Poettering [Tue, 29 Aug 2006 01:15:09 +0000 (01:15 +0000)]
add libatomic-ops to hard dependencies

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1340 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agofix an misdesigned assert()
Lennart Poettering [Mon, 28 Aug 2006 19:16:00 +0000 (19:16 +0000)]
fix an misdesigned assert()

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1339 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoAdd PulseAudio logo to tree.
Pierre Ossman [Mon, 28 Aug 2006 06:25:41 +0000 (06:25 +0000)]
Add PulseAudio logo to tree.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1338 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoupdate todo
Pierre Ossman [Mon, 28 Aug 2006 05:15:46 +0000 (05:15 +0000)]
update todo

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1337 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoincrease operation timeout
Lennart Poettering [Sun, 27 Aug 2006 13:04:56 +0000 (13:04 +0000)]
increase operation timeout

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1336 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agobump version and sonames
Lennart Poettering [Sat, 26 Aug 2006 19:22:14 +0000 (19:22 +0000)]
bump version and sonames

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1334 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agofix module-combine when used on top of a tunnel sink
Lennart Poettering [Sat, 26 Aug 2006 19:00:22 +0000 (19:00 +0000)]
fix module-combine when used on top of a tunnel sink

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1333 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoupdate module-tunnel to latest protocol
Lennart Poettering [Fri, 25 Aug 2006 22:52:59 +0000 (22:52 +0000)]
update module-tunnel to latest protocol

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1332 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoactivate HAL in the default config
Lennart Poettering [Fri, 25 Aug 2006 12:12:13 +0000 (12:12 +0000)]
activate HAL in the default config

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1331 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoAdd missing header.
Pierre Ossman [Thu, 24 Aug 2006 08:57:35 +0000 (08:57 +0000)]
Add missing header.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1330 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agofix handling of "mtu" module argument (patch by "theBear")
Lennart Poettering [Wed, 23 Aug 2006 22:28:53 +0000 (22:28 +0000)]
fix handling of "mtu" module argument (patch by "theBear")

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1329 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agofix typo
Pierre Ossman [Wed, 23 Aug 2006 07:58:07 +0000 (07:58 +0000)]
fix typo

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1328 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoMake the recording a bit more chunky so that we can fit in the pool and have
Pierre Ossman [Wed, 23 Aug 2006 07:57:43 +0000 (07:57 +0000)]
Make the recording a bit more chunky so that we can fit in the pool and have
efficient blocks.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1327 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoRemove silence generation in solaris module.
Pierre Ossman [Tue, 22 Aug 2006 16:25:47 +0000 (16:25 +0000)]
Remove silence generation in solaris module.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1326 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoRemove silence generation in waveout module.
Pierre Ossman [Tue, 22 Aug 2006 16:15:47 +0000 (16:15 +0000)]
Remove silence generation in waveout module.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1325 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoProceed with connect even when no cookie is loaded. Allows you to connect
Pierre Ossman [Tue, 22 Aug 2006 15:36:37 +0000 (15:36 +0000)]
Proceed with connect even when no cookie is loaded. Allows you to connect
to server which do not require a cookie under all circumstances.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1324 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoFix memory leak in waveout module.
Pierre Ossman [Tue, 22 Aug 2006 15:24:11 +0000 (15:24 +0000)]
Fix memory leak in waveout module.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1323 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoLog when there is a problem opening the waveOut/waveIn device.
Pierre Ossman [Tue, 22 Aug 2006 15:20:57 +0000 (15:20 +0000)]
Log when there is a problem opening the waveOut/waveIn device.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1322 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoFall back to creating a "normal" memory pool if unable to get a shared one.
Pierre Ossman [Tue, 22 Aug 2006 12:51:29 +0000 (12:51 +0000)]
Fall back to creating a "normal" memory pool if unable to get a shared one.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1321 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoImprove error messages a bit.
Pierre Ossman [Tue, 22 Aug 2006 12:46:05 +0000 (12:46 +0000)]
Improve error messages a bit.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1320 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoFix up portability of memory pool handling a bit.
Pierre Ossman [Tue, 22 Aug 2006 12:45:43 +0000 (12:45 +0000)]
Fix up portability of memory pool handling a bit.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1319 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoupdate todo
Lennart Poettering [Tue, 22 Aug 2006 12:29:41 +0000 (12:29 +0000)]
update todo

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1318 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agofix typo
Lennart Poettering [Tue, 22 Aug 2006 12:04:55 +0000 (12:04 +0000)]
fix typo

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1317 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoFix detection of shared memory support and proper fallback.
Pierre Ossman [Tue, 22 Aug 2006 11:41:14 +0000 (11:41 +0000)]
Fix detection of shared memory support and proper fallback.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1316 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoFix typo.
Pierre Ossman [Tue, 22 Aug 2006 11:39:19 +0000 (11:39 +0000)]
Fix typo.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1315 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoAdd missing header.
Pierre Ossman [Tue, 22 Aug 2006 11:38:46 +0000 (11:38 +0000)]
Add missing header.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1314 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoFix call to pa_memblock_new().
Pierre Ossman [Tue, 22 Aug 2006 11:37:53 +0000 (11:37 +0000)]
Fix call to pa_memblock_new().

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1313 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoFix detection of page size for non-POSIX systems.
Pierre Ossman [Tue, 22 Aug 2006 07:41:23 +0000 (07:41 +0000)]
Fix detection of page size for non-POSIX systems.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1312 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoFix missing header for timeval helpers.
Pierre Ossman [Tue, 22 Aug 2006 07:25:45 +0000 (07:25 +0000)]
Fix missing header for timeval helpers.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1311 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoFix calls to pa_memblock_new().
Pierre Ossman [Tue, 22 Aug 2006 07:23:47 +0000 (07:23 +0000)]
Fix calls to pa_memblock_new().

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1310 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoAdd header for pa_cstrerror().
Pierre Ossman [Tue, 22 Aug 2006 07:21:41 +0000 (07:21 +0000)]
Add header for pa_cstrerror().

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1309 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoFix call to pa_pstream_send_tagstruct().
Pierre Ossman [Tue, 22 Aug 2006 07:18:07 +0000 (07:18 +0000)]
Fix call to pa_pstream_send_tagstruct().

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1308 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoAdd an ifdef for when we do not have creds.
Pierre Ossman [Tue, 22 Aug 2006 07:12:50 +0000 (07:12 +0000)]
Add an ifdef for when we do not have creds.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1307 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agofix pactl output (sink drivers and names where switched)
Lennart Poettering [Mon, 21 Aug 2006 22:37:09 +0000 (22:37 +0000)]
fix pactl output (sink drivers and names where switched)

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1306 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoupdate todo
Lennart Poettering [Sat, 19 Aug 2006 23:09:23 +0000 (23:09 +0000)]
update todo

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1305 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agorestore the sink/source for a client in addition to the playback volume. This changes...
Lennart Poettering [Sat, 19 Aug 2006 23:08:50 +0000 (23:08 +0000)]
restore the sink/source for a client in addition to the playback volume. This changes the file format of the table file. To avoid parse errors ~/.pulse/volume.table has been renamed to ~/.pulse/volume-restore.table

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1304 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoIf a client leaves the sink/source for a stream unspecified by passing NULL as
Lennart Poettering [Sat, 19 Aug 2006 23:06:45 +0000 (23:06 +0000)]
If a client leaves the sink/source for a stream unspecified by passing NULL as
sink/source name sink/source we should pass NULL to
pa_sink_input_new()/pa_source_output_new() as too. This allows
hooks to change the sink/source device only if it is left unspecified by the client

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1303 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agofix a bad memory access
Lennart Poettering [Sat, 19 Aug 2006 23:04:04 +0000 (23:04 +0000)]
fix a bad memory access

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1302 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoupdate todo
Lennart Poettering [Sat, 19 Aug 2006 18:58:17 +0000 (18:58 +0000)]
update todo

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1301 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agowhen transferring large memory chunks of a pa_pstream, split them up
Lennart Poettering [Sat, 19 Aug 2006 18:57:33 +0000 (18:57 +0000)]
when transferring large memory chunks of a pa_pstream, split them up

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1300 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoupdate todo
Lennart Poettering [Sat, 19 Aug 2006 18:28:04 +0000 (18:28 +0000)]
update todo

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1299 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoupdate todo
Lennart Poettering [Sat, 19 Aug 2006 17:34:08 +0000 (17:34 +0000)]
update todo

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1298 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agocheck for posix_memalign and friends
Lennart Poettering [Sat, 19 Aug 2006 17:30:30 +0000 (17:30 +0000)]
check for posix_memalign and friends

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1297 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoif MAP_ANONYMOUS is not supported use posix_memalign if possible to allocate the...
Lennart Poettering [Sat, 19 Aug 2006 17:27:27 +0000 (17:27 +0000)]
if MAP_ANONYMOUS is not supported use posix_memalign if possible to allocate the memory pool

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1296 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoupdate todo
Lennart Poettering [Sat, 19 Aug 2006 16:26:08 +0000 (16:26 +0000)]
update todo

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1295 fefdeb5f-60dc-0310-8127-8f9354f1896f