]> code.delx.au - pulseaudio/log
pulseaudio
16 years agoadd our own implementation for pa_snprintf() because NUL termination is apparently...
Lennart Poettering [Wed, 25 Jul 2007 15:49:35 +0000 (15:49 +0000)]
add our own implementation for pa_snprintf() because NUL termination is apparently not guaranteed on windows and a couple of other libcs

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

16 years agoSimplify implementation of pa_assert_se()
Lennart Poettering [Wed, 25 Jul 2007 15:44:28 +0000 (15:44 +0000)]
Simplify implementation of pa_assert_se()

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

16 years agodrop chunk argument from various drop() functions, since it doesn't make any sense...
Lennart Poettering [Wed, 25 Jul 2007 14:46:40 +0000 (14:46 +0000)]
drop chunk argument from various drop() functions, since it doesn't make any sense if we want to guarantee always monotonously increasing read pointers; a couple of other fixes

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

16 years agoupdate static free list usage in asyncmsgq
Lennart Poettering [Wed, 25 Jul 2007 14:44:25 +0000 (14:44 +0000)]
update static free list usage in asyncmsgq

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

16 years agoupdate static free list usage in hashmap
Lennart Poettering [Wed, 25 Jul 2007 14:44:00 +0000 (14:44 +0000)]
update static free list usage in hashmap

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

16 years agodestruct freelists properly, by using gcc destructors. we do this only to make valgri...
Lennart Poettering [Wed, 25 Jul 2007 14:43:05 +0000 (14:43 +0000)]
destruct freelists properly, by using gcc destructors. we do this only to make valgrind shut up, not because it would have any real value during runtime

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

16 years agowrap destructor gcc attribute in macro
Lennart Poettering [Wed, 25 Jul 2007 14:41:54 +0000 (14:41 +0000)]
wrap destructor gcc attribute in macro

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

16 years agochange order of munmap and freeing of memblocks
Lennart Poettering [Wed, 25 Jul 2007 14:40:12 +0000 (14:40 +0000)]
change order of munmap and freeing of memblocks

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

16 years agoFix a couple of typos in the resampler code
Lennart Poettering [Sat, 14 Jul 2007 11:26:55 +0000 (11:26 +0000)]
Fix a couple of typos in the resampler code

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

16 years agoFix typo in pa_memblock_release() call; s/assert/pa_assert/
Lennart Poettering [Fri, 13 Jul 2007 23:28:11 +0000 (23:28 +0000)]
Fix typo in pa_memblock_release() call; s/assert/pa_assert/

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

16 years agos/assert/pa_assert/g; make use of static flist for memblock allocation where applicab...
Lennart Poettering [Fri, 13 Jul 2007 23:27:15 +0000 (23:27 +0000)]
s/assert/pa_assert/g; make use of static flist for memblock allocation where applicable; properly initialize length value in pa_memexport_put()

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

16 years agoMinor clarification
Lennart Poettering [Fri, 13 Jul 2007 23:23:03 +0000 (23:23 +0000)]
Minor clarification

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

16 years agoMake use of static flist for hashmap entry alllocation
Lennart Poettering [Fri, 13 Jul 2007 23:22:38 +0000 (23:22 +0000)]
Make use of static flist for hashmap entry alllocation

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

16 years agoActually make the static flist static
Lennart Poettering [Fri, 13 Jul 2007 23:21:54 +0000 (23:21 +0000)]
Actually make the static flist static

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

16 years agoPort module-sine to the new lock-free core
Lennart Poettering [Fri, 13 Jul 2007 12:14:30 +0000 (12:14 +0000)]
Port module-sine to the new lock-free core

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

16 years agoReenable a couple of more modules
Lennart Poettering [Fri, 13 Jul 2007 12:13:55 +0000 (12:13 +0000)]
Reenable a couple of more modules

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

16 years agoRemove a superfluous pa_memblock_release(); properly handle buf4 allocation
Lennart Poettering [Fri, 13 Jul 2007 12:13:25 +0000 (12:13 +0000)]
Remove a superfluous pa_memblock_release(); properly handle buf4 allocation

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

16 years agoFix concurrency bug when turning memblock into a local memblock
Lennart Poettering [Fri, 13 Jul 2007 12:12:40 +0000 (12:12 +0000)]
Fix concurrency bug when turning memblock into a local memblock

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

16 years agoFix off-by-one in mixing code
Lennart Poettering [Fri, 13 Jul 2007 12:11:19 +0000 (12:11 +0000)]
Fix off-by-one in mixing code

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

16 years agoReplace a couple of assert()s by pa_assert()s
Lennart Poettering [Fri, 13 Jul 2007 12:10:44 +0000 (12:10 +0000)]
Replace a couple of assert()s by pa_assert()s

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

16 years agoRemove module-oss-mmap, since it is now merged into module-oss
Lennart Poettering [Fri, 13 Jul 2007 00:15:59 +0000 (00:15 +0000)]
Remove module-oss-mmap, since it is now merged into module-oss

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

16 years agoMerge module-oss-mmap into module-oss and make suspending working properly
Lennart Poettering [Fri, 13 Jul 2007 00:14:11 +0000 (00:14 +0000)]
Merge module-oss-mmap into module-oss and make suspending working properly

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

16 years agoMake pa_sink_render_* and pa_source_post work only when in RUNNING state, to fix...
Lennart Poettering [Fri, 13 Jul 2007 00:09:59 +0000 (00:09 +0000)]
Make pa_sink_render_* and pa_source_post work only when in RUNNING state, to fix handling of monitor sources when their sink is suspended

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

16 years agoProperly initialize all revents on EINTR
Lennart Poettering [Thu, 12 Jul 2007 16:15:35 +0000 (16:15 +0000)]
Properly initialize all revents on EINTR

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

16 years agoMake sure pollfd[POLLFD_ASYNCQ].revents is properly initialized on signal
Lennart Poettering [Thu, 12 Jul 2007 16:00:51 +0000 (16:00 +0000)]
Make sure pollfd[POLLFD_ASYNCQ].revents is properly initialized on signal

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

16 years agofix segfault when recording with module-oss.c
Lennart Poettering [Thu, 12 Jul 2007 15:40:29 +0000 (15:40 +0000)]
fix segfault when recording with module-oss.c

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

17 years agoPort module-oss to the new lock-free core
Lennart Poettering [Mon, 25 Jun 2007 22:54:06 +0000 (22:54 +0000)]
Port module-oss to the new lock-free core

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

17 years agoremove pa_memblockq_is_writable() (because it is stupid and not used anywhere anyway...
Lennart Poettering [Mon, 25 Jun 2007 22:53:09 +0000 (22:53 +0000)]
remove pa_memblockq_is_writable() (because it is stupid and not used anywhere anyway, and replace all assert()s with pa_assert()s

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

17 years agomake sure we don't free the same connection twice
Lennart Poettering [Mon, 25 Jun 2007 22:33:04 +0000 (22:33 +0000)]
make sure we don't free the same connection twice

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

17 years agoLimit silence buffer size for pa_sink_render()
Lennart Poettering [Sun, 24 Jun 2007 16:17:30 +0000 (16:17 +0000)]
Limit silence buffer size for pa_sink_render()

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

17 years agoTrack the 'missing' variable safely between the threads
Lennart Poettering [Sun, 24 Jun 2007 16:17:02 +0000 (16:17 +0000)]
Track the 'missing' variable safely between the threads

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

17 years agorework the logic of pa_asyncq
Lennart Poettering [Sun, 24 Jun 2007 16:15:56 +0000 (16:15 +0000)]
rework the logic of pa_asyncq

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

17 years agoMake sure the returned pa_msgobject object has a valid refcnt before returning it
Lennart Poettering [Sun, 24 Jun 2007 16:11:52 +0000 (16:11 +0000)]
Make sure the returned pa_msgobject object has a valid refcnt before returning it

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

17 years agoInclude assert.h, since we use assert() for our pa_assert() macro
Lennart Poettering [Sun, 24 Jun 2007 16:10:12 +0000 (16:10 +0000)]
Include assert.h, since we use assert() for our pa_assert() macro

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

17 years agoFix length calculation in pa_silence_memblock_new() and make use of pa_assert() every...
Lennart Poettering [Sun, 24 Jun 2007 16:09:43 +0000 (16:09 +0000)]
Fix length calculation in pa_silence_memblock_new() and make use of pa_assert() everywhere instead of assert()

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

17 years agoMake use of dbus_watch_get_unix_fd() instead of dbus_watch_get_fd() because of deprec...
Lennart Poettering [Sun, 24 Jun 2007 16:06:32 +0000 (16:06 +0000)]
Make use of dbus_watch_get_unix_fd() instead of dbus_watch_get_fd() because of deprecation of the latter

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

17 years agoUpdate OSS driver for new lock-free core
Lennart Poettering [Sat, 23 Jun 2007 20:05:20 +0000 (20:05 +0000)]
Update OSS driver for new lock-free core

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

17 years agoremove underrun condition in pa_sinks. Instead return silence in pa_sink_render(...
Lennart Poettering [Sat, 23 Jun 2007 20:04:47 +0000 (20:04 +0000)]
remove underrun condition in pa_sinks. Instead return silence in pa_sink_render() when necessary. This is required to guarantee that the time functions in connected sink inputs stays linear

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

17 years agodon't handle underrun special
Lennart Poettering [Sat, 23 Jun 2007 20:03:30 +0000 (20:03 +0000)]
don't handle underrun special

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

17 years agodrop silence generation from sink drivers
Lennart Poettering [Sat, 23 Jun 2007 20:03:00 +0000 (20:03 +0000)]
drop silence generation from sink drivers

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

17 years agofix a typo and some minor optimizations
Lennart Poettering [Sat, 23 Jun 2007 20:02:28 +0000 (20:02 +0000)]
fix a typo and some minor optimizations

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

17 years agominor cleanups and optimizations
Lennart Poettering [Sat, 23 Jun 2007 20:01:40 +0000 (20:01 +0000)]
minor cleanups and optimizations

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

17 years agoFix minor typo
Lennart Poettering [Sat, 23 Jun 2007 19:53:11 +0000 (19:53 +0000)]
Fix minor typo

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

17 years agoPort module-pipe-source to the new threaded design
Lennart Poettering [Thu, 14 Jun 2007 20:15:06 +0000 (20:15 +0000)]
Port module-pipe-source to the new threaded design

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

17 years agoFix another ugly typo, which made source outputs unusable
Lennart Poettering [Thu, 14 Jun 2007 20:14:33 +0000 (20:14 +0000)]
Fix another ugly typo, which made source outputs unusable

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

17 years agouse pa_memblockq_push_align() instead of pa_memblockq_push() to deal with unaligned...
Lennart Poettering [Thu, 14 Jun 2007 20:13:44 +0000 (20:13 +0000)]
use pa_memblockq_push_align() instead of pa_memblockq_push() to deal with unaligned data coming from clients

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

17 years agoShow memchunk length in debug output
Lennart Poettering [Thu, 14 Jun 2007 20:12:26 +0000 (20:12 +0000)]
Show memchunk length in debug output

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

17 years agoFix a nasty typo in pa_asyncq_pop
Lennart Poettering [Thu, 14 Jun 2007 20:11:46 +0000 (20:11 +0000)]
Fix a nasty typo in pa_asyncq_pop

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

17 years agoRemove anotify.[ch], since it is now entirely replaced by pa_asyncmsgq
Lennart Poettering [Thu, 14 Jun 2007 18:48:40 +0000 (18:48 +0000)]
Remove anotify.[ch], since it is now entirely replaced by pa_asyncmsgq

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

17 years agorework sink input/source output state machine
Lennart Poettering [Thu, 14 Jun 2007 17:12:40 +0000 (17:12 +0000)]
rework sink input/source output state machine

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

17 years agoMake debug message more useful
Lennart Poettering [Thu, 14 Jun 2007 17:06:11 +0000 (17:06 +0000)]
Make debug message more useful

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

17 years agoMove a few things between the threads
Lennart Poettering [Thu, 14 Jun 2007 17:01:01 +0000 (17:01 +0000)]
Move a few things between the threads

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

17 years agotrivial cleanups
Lennart Poettering [Thu, 14 Jun 2007 16:53:40 +0000 (16:53 +0000)]
trivial cleanups

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

17 years agoA lot of more work to get the lock-free stuff in place
Lennart Poettering [Wed, 13 Jun 2007 22:08:14 +0000 (22:08 +0000)]
A lot of more work to get the lock-free stuff in place

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

17 years agomake untabify
Lennart Poettering [Mon, 11 Jun 2007 13:53:31 +0000 (13:53 +0000)]
make untabify

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

17 years agoAdd new untabify makefile target
Lennart Poettering [Mon, 11 Jun 2007 13:53:16 +0000 (13:53 +0000)]
Add new untabify makefile target

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

17 years agomake eolspace
Lennart Poettering [Mon, 11 Jun 2007 12:17:40 +0000 (12:17 +0000)]
make eolspace

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

17 years agoMerge HUGE set of changes temporarily into a branch, to allow me to move them from...
Lennart Poettering [Mon, 11 Jun 2007 12:08:37 +0000 (12:08 +0000)]
Merge HUGE set of changes temporarily into a branch, to allow me to move them from one machine to another (lock-free and stuff)

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

17 years agoadd a new private branch
Lennart Poettering [Mon, 11 Jun 2007 12:00:02 +0000 (12:00 +0000)]
add a new private branch

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

17 years agoSupport stat() and friends as some programs (audacity) likes to check if
Pierre Ossman [Mon, 11 Jun 2007 11:22:30 +0000 (11:22 +0000)]
Support stat() and friends as some programs (audacity) likes to check if
the device node is there first.

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

17 years agoAdd support for the poorly documented SNDCTL_DSP_GETTRIGGER.
Pierre Ossman [Mon, 4 Jun 2007 09:52:03 +0000 (09:52 +0000)]
Add support for the poorly documented SNDCTL_DSP_GETTRIGGER.

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

17 years agoKill spaces on EOL
Lennart Poettering [Tue, 29 May 2007 17:24:48 +0000 (17:24 +0000)]
Kill spaces on EOL

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

17 years agoadd target "eolspace" to makefil to remove trailing newlines from all source files
Lennart Poettering [Tue, 29 May 2007 17:16:24 +0000 (17:16 +0000)]
add target "eolspace" to makefil to remove trailing newlines from all source files

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

17 years agoWe now use gid unconditionally, so make sure it's defined.
Pierre Ossman [Tue, 29 May 2007 07:47:02 +0000 (07:47 +0000)]
We now use gid unconditionally, so make sure it's defined.

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

17 years agobuild fix for systems lacking capability suppoort. (Problem identified and original...
Lennart Poettering [Mon, 28 May 2007 15:52:13 +0000 (15:52 +0000)]
build fix for systems lacking capability suppoort. (Problem identified and original patch supplied by Diego Petteno

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

17 years agoBump revision of libs and package
Lennart Poettering [Sun, 27 May 2007 20:58:29 +0000 (20:58 +0000)]
Bump revision of libs and package

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

17 years agoReplace AO_xxx usage with pa_atomic_xxx and friends wherever it makes sense
Lennart Poettering [Sun, 27 May 2007 20:38:14 +0000 (20:38 +0000)]
Replace AO_xxx usage with pa_atomic_xxx and friends wherever it makes sense

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

17 years agounfortunately we cannot detect if a foreign thread is still running. Thus sucks....
Lennart Poettering [Sun, 27 May 2007 16:59:34 +0000 (16:59 +0000)]
unfortunately we cannot detect if a foreign thread is still running. Thus sucks. But what can we do? U. Drepper thinks our use case is invalid.

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

17 years agoMinor optimization: read log level character code from array
Lennart Poettering [Sun, 27 May 2007 16:37:05 +0000 (16:37 +0000)]
Minor optimization: read log level character code from array

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

17 years agoAdd a new meta command ".ifexists" to the CLI language, to execute commands only...
Lennart Poettering [Sat, 26 May 2007 23:39:33 +0000 (23:39 +0000)]
Add a new meta command ".ifexists" to the CLI language, to execute commands only if a specified file exists. Original patch from cjvdb. Closes #36

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

17 years agowhen called with the setid bit change euid to uid sooner to make sure that we can...
Lennart Poettering [Fri, 25 May 2007 20:35:30 +0000 (20:35 +0000)]
when called with the setid bit change euid to uid sooner to make sure that we can access our own files even when we dropped most capabilities. (Closes #21)

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

17 years agofix suid Makefile target
Lennart Poettering [Fri, 25 May 2007 20:24:55 +0000 (20:24 +0000)]
fix suid Makefile target

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

17 years agoonly browse for ipv4 pa servers for now. Needs better fixing which however is not...
Lennart Poettering [Wed, 23 May 2007 23:38:28 +0000 (23:38 +0000)]
only browse for ipv4 pa servers for now. Needs better fixing which however is not trivial and probably breaks the API

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

17 years agoFix another DoS vulnerability that has been identified by Luigi Auriemma. (Finally...
Lennart Poettering [Wed, 23 May 2007 17:24:06 +0000 (17:24 +0000)]
Fix another DoS vulnerability that has been identified by Luigi Auriemma. (Finally closes #67)

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

17 years agoadd a missing initialization that causes a crash when parsing invalid volume restorat...
Lennart Poettering [Wed, 23 May 2007 17:12:07 +0000 (17:12 +0000)]
add a missing initialization that causes a crash when parsing invalid volume restoration tables (Problem identified by Luigi Auriemma, re #67)

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

17 years agoFix a DoS with allocating overly large silence buffers. (Identified by Luigi Auriemma...
Lennart Poettering [Wed, 23 May 2007 16:59:03 +0000 (16:59 +0000)]
Fix a DoS with allocating overly large silence buffers. (Identified by Luigi Auriemma (re #67)

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

17 years agodon't allow excessively high sample rates
Lennart Poettering [Wed, 23 May 2007 16:57:35 +0000 (16:57 +0000)]
don't allow excessively high sample rates

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

17 years agoFix yet another DoS vulnerability, also identified Luigi Auriemma (re #67)
Lennart Poettering [Wed, 23 May 2007 16:42:26 +0000 (16:42 +0000)]
Fix yet another DoS vulnerability, also identified Luigi Auriemma (re #67)

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

17 years agofix minor typo
Lennart Poettering [Wed, 23 May 2007 16:30:57 +0000 (16:30 +0000)]
fix minor typo

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

17 years agoFix another DoS vulnerability, also identified Luigi Auriemma (closes #67)
Lennart Poettering [Wed, 23 May 2007 16:29:18 +0000 (16:29 +0000)]
Fix another DoS vulnerability, also identified Luigi Auriemma (closes #67)

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

17 years agofix a DoS vulnerability (re #67), originally identified by Luigi Auriemma
Lennart Poettering [Wed, 23 May 2007 16:24:54 +0000 (16:24 +0000)]
fix a DoS vulnerability (re #67), originally identified by Luigi Auriemma

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

17 years agofix a few obvious copynpaste errors when handling volumes
Lennart Poettering [Wed, 23 May 2007 15:30:34 +0000 (15:30 +0000)]
fix a few obvious copynpaste errors when handling volumes

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

17 years agoTreat empty :0.0 identically to unset :0.0 when trying to find a PA server. (Closes...
Lennart Poettering [Wed, 23 May 2007 12:32:37 +0000 (12:32 +0000)]
Treat empty :0.0 identically to unset :0.0 when trying to find a PA server. (Closes #87)

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

17 years agoFix module-oss for devices that return EAGAIN when we don't expect it. (Closes #66)
Lennart Poettering [Wed, 23 May 2007 01:02:06 +0000 (01:02 +0000)]
Fix module-oss for devices that return EAGAIN when we don't expect it. (Closes #66)

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

17 years agoshow socket directory when we fail to create it. (Closes #85)
Lennart Poettering [Tue, 22 May 2007 23:39:47 +0000 (23:39 +0000)]
show socket directory when we fail to create it. (Closes #85)

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

17 years agoFix build and only load OSS xor ALSA modules if both are available
Lennart Poettering [Tue, 22 May 2007 23:38:22 +0000 (23:38 +0000)]
Fix build and only load OSS xor ALSA modules if both are available

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

17 years agodrop unused variable
Lennart Poettering [Tue, 22 May 2007 23:37:27 +0000 (23:37 +0000)]
drop unused variable

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

17 years agofix comment
Lennart Poettering [Tue, 22 May 2007 23:08:34 +0000 (23:08 +0000)]
fix comment

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

17 years agoAdd support for SNDCTL_DSP_SETTRIGGER. (closes #56)
Pierre Ossman [Wed, 7 Mar 2007 09:27:30 +0000 (09:27 +0000)]
Add support for SNDCTL_DSP_SETTRIGGER. (closes #56)

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

17 years agoFix some instances where we printed a string without first checking that
Pierre Ossman [Tue, 6 Mar 2007 15:47:11 +0000 (15:47 +0000)]
Fix some instances where we printed a string without first checking that
the pointer was valid.

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

17 years agoPulsecore should be linked into all modules.
Pierre Ossman [Tue, 6 Mar 2007 13:42:30 +0000 (13:42 +0000)]
Pulsecore should be linked into all modules.

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

17 years agoDon't fail if hal doesn't currently contain any devices. (closes #55)
Pierre Ossman [Tue, 6 Mar 2007 13:31:29 +0000 (13:31 +0000)]
Don't fail if hal doesn't currently contain any devices. (closes #55)

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

17 years agoHandle suspended alsa devices. Based on patch by ranma. (closes #26)
Pierre Ossman [Fri, 2 Mar 2007 09:20:54 +0000 (09:20 +0000)]
Handle suspended alsa devices. Based on patch by ranma. (closes #26)

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

17 years agoRevert stuff from commit 1431 that wasn't supposed to be there.
Pierre Ossman [Thu, 1 Mar 2007 17:15:43 +0000 (17:15 +0000)]
Revert stuff from commit 1431 that wasn't supposed to be there.

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

17 years agoHandle when ALSA tweaks our sample spec so much that the frame size changes.
Pierre Ossman [Thu, 1 Mar 2007 17:13:26 +0000 (17:13 +0000)]
Handle when ALSA tweaks our sample spec so much that the frame size changes.
(closes #57).

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

17 years agoAdd some debugging output from sample cache subsystem.
Pierre Ossman [Thu, 1 Mar 2007 17:11:10 +0000 (17:11 +0000)]
Add some debugging output from sample cache subsystem.

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

17 years agoAdd a wrapper around close() to work around Windows' ass backwards way of
Pierre Ossman [Wed, 14 Feb 2007 12:13:49 +0000 (12:13 +0000)]
Add a wrapper around close() to work around Windows' ass backwards way of
handling sockets.

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

17 years agoAllow a formatted string in the validation warning.
Pierre Ossman [Wed, 14 Feb 2007 09:27:19 +0000 (09:27 +0000)]
Allow a formatted string in the validation warning.

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

17 years agoPrefix log lines with a character indicating level.
Pierre Ossman [Wed, 14 Feb 2007 09:26:48 +0000 (09:26 +0000)]
Prefix log lines with a character indicating level.

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

17 years agoAdd copyright notices to all relevant files. (based on svn log)
Pierre Ossman [Tue, 13 Feb 2007 15:35:19 +0000 (15:35 +0000)]
Add copyright notices to all relevant files. (based on svn log)

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