profile/ivi/pulseaudio-panda.git
17 years agoReplace all references to sys/poll.h with poll.h as that's what POSIX defines.
Pierre Ossman [Wed, 3 Oct 2007 14:41:21 +0000 (14:41 +0000)]
Replace all references to sys/poll.h with poll.h as that's what POSIX defines.

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

17 years agoupdate native protocol to make use of pa_memblockq_pop_missing
Lennart Poettering [Mon, 1 Oct 2007 16:42:59 +0000 (16:42 +0000)]
update native protocol to make use of pa_memblockq_pop_missing

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

17 years agoMove request size handling into pa_memblockq, function pa_memblockq_pop_missing()
Lennart Poettering [Mon, 1 Oct 2007 16:41:50 +0000 (16:41 +0000)]
Move request size handling into pa_memblockq, function pa_memblockq_pop_missing()

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

17 years agoFix race condition between IO thread creation and pa_sink_put(). Move activation...
Lennart Poettering [Mon, 1 Oct 2007 16:39:04 +0000 (16:39 +0000)]
Fix race condition between IO thread creation and pa_sink_put(). Move activation of rtpoll fds when we change the state INIT->IDLE.

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

17 years agofix trivial typo
Lennart Poettering [Mon, 1 Oct 2007 00:44:29 +0000 (00:44 +0000)]
fix trivial typo

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

17 years agofix silence initializer for alaw and ulaw
Lennart Poettering [Mon, 1 Oct 2007 00:16:24 +0000 (00:16 +0000)]
fix silence initializer for alaw and ulaw

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

17 years agoFixed PA_GCC_CONST definition.
Tanu Kaskinen [Sun, 30 Sep 2007 13:19:26 +0000 (13:19 +0000)]
Fixed PA_GCC_CONST definition.

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

17 years agoUpdate module-solaris to new structure.
Pierre Ossman [Fri, 28 Sep 2007 14:01:25 +0000 (14:01 +0000)]
Update module-solaris to new structure.

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

17 years agotreat timer_enabled like a real, grown-up boolean variable
Lennart Poettering [Fri, 28 Sep 2007 13:15:11 +0000 (13:15 +0000)]
treat timer_enabled like a real, grown-up boolean variable

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

17 years agorework module-combine once again. We now run the data generation always in a seperate...
Lennart Poettering [Fri, 28 Sep 2007 13:02:28 +0000 (13:02 +0000)]
rework module-combine once again. We now run the data generation always in a seperate thread. This should help use to avoid all the awful race conditions we had in previously

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

17 years agoMove the poll() call outside the #ifdef checking for ppoll, since we want the poll...
Lennart Poettering [Fri, 28 Sep 2007 13:00:35 +0000 (13:00 +0000)]
Move the poll() call outside the #ifdef checking for ppoll, since we want the poll in all cases. Prior to this change the check for negative return values of poll/ppoll was never actually executed when ppoll() was available

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

17 years agouse the full range of RTSIGS for our stuff
Lennart Poettering [Fri, 28 Sep 2007 12:53:17 +0000 (12:53 +0000)]
use the full range of RTSIGS for our stuff

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

17 years agoAllocate rtsigs from back to front, to avoid clashes with other libraries makeing...
Lennart Poettering [Fri, 28 Sep 2007 12:52:47 +0000 (12:52 +0000)]
Allocate rtsigs from back to front, to avoid clashes with other libraries makeing use of rtsigs

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

17 years agoonly do IO if we are RUNNING or IDLE, but not when we are in INIT
Lennart Poettering [Fri, 28 Sep 2007 12:22:56 +0000 (12:22 +0000)]
only do IO if we are RUNNING or IDLE, but not when we are in INIT

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

17 years agoIncorrectly used str2sig() instead of sig2str().
Pierre Ossman [Fri, 28 Sep 2007 09:23:05 +0000 (09:23 +0000)]
Incorrectly used str2sig() instead of sig2str().

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

17 years agodon't free silence memblocks that don't exist
Lennart Poettering [Fri, 28 Sep 2007 00:30:48 +0000 (00:30 +0000)]
don't free silence memblocks that don't exist

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

17 years agospeed up semaphore allocation with an flist
Lennart Poettering [Fri, 28 Sep 2007 00:29:51 +0000 (00:29 +0000)]
speed up semaphore allocation with an flist

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

17 years agoUse Linux eventfd() if kernel supports it
Lennart Poettering [Wed, 26 Sep 2007 22:50:08 +0000 (22:50 +0000)]
Use Linux eventfd() if kernel supports it

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

17 years agofix build with compilers that lack __thread
Lennart Poettering [Wed, 26 Sep 2007 13:33:25 +0000 (13:33 +0000)]
fix build with compilers that lack __thread

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

17 years agomake sure when can shutdown PA cleanly without segfault
Lennart Poettering [Tue, 25 Sep 2007 01:58:16 +0000 (01:58 +0000)]
make sure when can shutdown PA cleanly without segfault

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

17 years agowork around newest open() magic in fedora glibc
Lennart Poettering [Tue, 25 Sep 2007 00:53:49 +0000 (00:53 +0000)]
work around newest open() magic in fedora glibc

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

17 years agofix make dist
Lennart Poettering [Tue, 25 Sep 2007 00:45:57 +0000 (00:45 +0000)]
fix make dist

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

17 years agofix suspending in module-combine.c
Lennart Poettering [Mon, 24 Sep 2007 23:53:58 +0000 (23:53 +0000)]
fix suspending in module-combine.c

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

17 years ago* decouple suspending of monitor sources and their sinks
Lennart Poettering [Mon, 24 Sep 2007 23:32:52 +0000 (23:32 +0000)]
* decouple suspending of monitor sources and their sinks
* implement resume-on-uncork

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

17 years agoonly post data into the monitor source when it is not suspended
Lennart Poettering [Mon, 24 Sep 2007 23:32:01 +0000 (23:32 +0000)]
only post data into the monitor source when it is not suspended

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

17 years ago* add new state changed hook for streams
Lennart Poettering [Mon, 24 Sep 2007 23:31:22 +0000 (23:31 +0000)]
* add new state changed hook for streams
* update sink->n_corked properly when moving streams

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

17 years agofix IDLE vs. RUNNING state handling of sinks/sources when changing cork status for...
Lennart Poettering [Mon, 24 Sep 2007 22:41:00 +0000 (22:41 +0000)]
fix IDLE vs. RUNNING state handling of sinks/sources when changing cork status for streams

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

17 years agorework zeroconf service publishing, to use synchronous hooks instead of asynchronous...
Lennart Poettering [Mon, 24 Sep 2007 21:49:02 +0000 (21:49 +0000)]
rework zeroconf service publishing, to use synchronous hooks instead of asynchronous subscription events. Don't push autoload entries anymore.

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

17 years agoadd hooks for name/description changes of sinks/source and streams
Lennart Poettering [Mon, 24 Sep 2007 21:47:22 +0000 (21:47 +0000)]
add hooks for name/description changes of sinks/source and streams

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

17 years agofix stream corking: ignore pa_sink_input() when we are in corked state
Lennart Poettering [Mon, 24 Sep 2007 17:14:00 +0000 (17:14 +0000)]
fix stream corking: ignore pa_sink_input() when we are in corked state

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

17 years agodon't count streams using the monitor source in pa_sink_used_by(), because this would...
Lennart Poettering [Mon, 24 Sep 2007 16:24:23 +0000 (16:24 +0000)]
don't count streams using the monitor source in pa_sink_used_by(), because this would disallow suspending a sink ehn an rtp stream is connected

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

17 years agodrop the PA_SOURCE_CAN_SUSPEND and PA_SINK_CAN_SUSPEND flags, since they were a bad...
Lennart Poettering [Mon, 24 Sep 2007 16:10:43 +0000 (16:10 +0000)]
drop the PA_SOURCE_CAN_SUSPEND and PA_SINK_CAN_SUSPEND flags, since they were a bad idea in the first place. All sinks/sources are now *required* to handle suspending in one way or another. Luckily all current sink/source implementations handle it fine anyway.

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

17 years agoinstead of using the mixer ioctl()s on the dsp fd, open a seperate fd for the mixer...
Lennart Poettering [Sun, 23 Sep 2007 21:03:24 +0000 (21:03 +0000)]
instead of using the mixer ioctl()s on the dsp fd, open a seperate fd for the mixer. This allows us the keep the mixer fd open while closing the dsp device while suspending.

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

17 years agouse O_NOFOLLOW when creating lock files, too
Lennart Poettering [Sun, 23 Sep 2007 19:30:56 +0000 (19:30 +0000)]
use O_NOFOLLOW when creating lock files, too

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

17 years agouse O_NOFOLLOW when creating PID file, to avoid symlink vulnerability
Lennart Poettering [Sun, 23 Sep 2007 19:23:44 +0000 (19:23 +0000)]
use O_NOFOLLOW when creating PID file, to avoid symlink vulnerability

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

17 years agoAdded an assertion for the case when the sink programmer hasn't installed the thread_...
Tanu Kaskinen [Sun, 23 Sep 2007 14:51:07 +0000 (14:51 +0000)]
Added an assertion for the case when the sink programmer hasn't installed the thread_mq properly.

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

17 years agoComment typo fix.
Tanu Kaskinen [Sun, 23 Sep 2007 14:39:39 +0000 (14:39 +0000)]
Comment typo fix.

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

17 years agoFix the assignment of control values by using the right variable for indexing.
Tanu Kaskinen [Sat, 22 Sep 2007 08:39:07 +0000 (08:39 +0000)]
Fix the assignment of control values by using the right variable for indexing.

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

17 years agoCorrect the parameter positions with the pa_cvolume_set() call.
Tanu Kaskinen [Sat, 22 Sep 2007 07:31:29 +0000 (07:31 +0000)]
Correct the parameter positions with the pa_cvolume_set() call.

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

17 years agominor optimization
Lennart Poettering [Sat, 22 Sep 2007 02:00:32 +0000 (02:00 +0000)]
minor optimization

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

17 years agoinclude the name of the master sink in the name for piggy-backed virtual sinks
Lennart Poettering [Sat, 22 Sep 2007 01:35:32 +0000 (01:35 +0000)]
include the name of the master sink in the name for piggy-backed virtual sinks

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

17 years agoprefix by order macros with PA_
Lennart Poettering [Sat, 22 Sep 2007 01:16:14 +0000 (01:16 +0000)]
prefix by order macros with PA_

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

17 years agorework a couple of sample type converters, to actually work
Lennart Poettering [Sat, 22 Sep 2007 00:26:18 +0000 (00:26 +0000)]
rework a couple of sample type converters, to actually work

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

17 years ago- rework volume adjustment code to not require fp
Lennart Poettering [Sat, 22 Sep 2007 00:25:17 +0000 (00:25 +0000)]
- rework volume adjustment code to not require fp
- don't hit an assert when we cannot do a volume adjustment, instead, print a warning and go on

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

17 years agofix selection of working format
Lennart Poettering [Sat, 22 Sep 2007 00:22:36 +0000 (00:22 +0000)]
fix selection of working format

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

17 years agomake use of byte swap builtins of gcc if they are available
Lennart Poettering [Sat, 22 Sep 2007 00:21:08 +0000 (00:21 +0000)]
make use of byte swap builtins of gcc if they are available

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

17 years agoadd test program for the resampler
Lennart Poettering [Sat, 22 Sep 2007 00:19:56 +0000 (00:19 +0000)]
add test program for the resampler

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

17 years agoallow _unlink() functions to be called as many times as people want, even before...
Lennart Poettering [Fri, 21 Sep 2007 13:32:00 +0000 (13:32 +0000)]
allow _unlink() functions to be called as many times as people want, even before _put() was called

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

17 years agoclamp sample data to -1 .. 1, before passing it to the plugin; if a control port...
Lennart Poettering [Fri, 21 Sep 2007 00:16:34 +0000 (00:16 +0000)]
clamp sample data to -1 .. 1, before passing it to the plugin; if a control port data specification is left empty, initialize with the default value of the plugin

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

17 years agoadd CLAMP macro
Lennart Poettering [Fri, 21 Sep 2007 00:14:20 +0000 (00:14 +0000)]
add CLAMP macro

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

17 years agodon't segfault when the master changes
Lennart Poettering [Thu, 20 Sep 2007 22:01:58 +0000 (22:01 +0000)]
don't segfault when the master changes

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

17 years agoproperly detach/attach when moving sink inputs
Lennart Poettering [Thu, 20 Sep 2007 22:01:07 +0000 (22:01 +0000)]
properly detach/attach when moving sink inputs

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

17 years agorework module-combine again
Lennart Poettering [Thu, 20 Sep 2007 20:33:34 +0000 (20:33 +0000)]
rework module-combine again

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

17 years agomaintain the attach status in a boolean variable 'attach' accessible from the IO...
Lennart Poettering [Thu, 20 Sep 2007 20:30:03 +0000 (20:30 +0000)]
maintain the attach status in a boolean variable 'attach' accessible from the IO thread for sink_inputs/source_outputs

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

17 years agorender new data always in the master sink's thread, fixing missing locking
Lennart Poettering [Wed, 19 Sep 2007 22:21:55 +0000 (22:21 +0000)]
render new data always in the master sink's thread, fixing missing locking

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

17 years agomake sure we initialize thread private data before we move our ghost sink to the...
Lennart Poettering [Wed, 19 Sep 2007 21:20:15 +0000 (21:20 +0000)]
make sure we initialize thread private data before we move our ghost sink to the rt thread, not after

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

17 years agofix trivial typo
Lennart Poettering [Wed, 19 Sep 2007 19:06:25 +0000 (19:06 +0000)]
fix trivial typo

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

17 years agofix check for lrintf, make resample2.c again identical to upstream ffmpeg
Lennart Poettering [Wed, 19 Sep 2007 19:03:38 +0000 (19:03 +0000)]
fix check for lrintf, make resample2.c again identical to upstream ffmpeg

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

17 years agomake O_CLOEXEC, O_NONBLOCK and socket low latency fd ops more uniform: always return...
Lennart Poettering [Wed, 19 Sep 2007 00:12:01 +0000 (00:12 +0000)]
make O_CLOEXEC, O_NONBLOCK and socket low latency fd ops more uniform: always return void, name them similarly, only pass a single fd

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

17 years agocopy free_cb into a temporary variable first, to avoid compiler warning
Lennart Poettering [Wed, 19 Sep 2007 00:08:40 +0000 (00:08 +0000)]
copy free_cb into a temporary variable first, to avoid compiler warning

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

17 years agofall back to plughw:, if hw: doesn't work, in the alsa source, too
Lennart Poettering [Tue, 18 Sep 2007 23:35:05 +0000 (23:35 +0000)]
fall back to plughw:, if hw: doesn't work, in the alsa source, too

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

17 years agoproperly release memblock always abd as soon as possible
Lennart Poettering [Tue, 18 Sep 2007 23:24:13 +0000 (23:24 +0000)]
properly release memblock always abd as soon as possible

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

17 years agomake use of pa_bool_t on a few places where applicable; really start work_cb
Lennart Poettering [Tue, 18 Sep 2007 23:21:06 +0000 (23:21 +0000)]
make use of pa_bool_t on a few places where applicable; really start work_cb

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

17 years agolower SO_PRIORITY priority to 6, since this is the best we get without being root
Lennart Poettering [Tue, 18 Sep 2007 22:29:24 +0000 (22:29 +0000)]
lower SO_PRIORITY priority to 6, since this is the best we get without being root

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

17 years agomake rtp send socket low delay
Lennart Poettering [Tue, 18 Sep 2007 22:25:18 +0000 (22:25 +0000)]
make rtp send socket low delay

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

17 years agoadd new pa_socket_udp_low_delay() API
Lennart Poettering [Tue, 18 Sep 2007 22:24:45 +0000 (22:24 +0000)]
add new pa_socket_udp_low_delay() API

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

17 years agoadd two missing header file inclusions
Lennart Poettering [Tue, 18 Sep 2007 21:31:21 +0000 (21:31 +0000)]
add two missing header file inclusions

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

17 years agobug fixes for module-rtp-recv
Lennart Poettering [Tue, 18 Sep 2007 19:52:45 +0000 (19:52 +0000)]
bug fixes for module-rtp-recv

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

17 years agomake sure we don't call pa_source_post() for a monitor source after it was unlinked
Lennart Poettering [Tue, 18 Sep 2007 19:52:20 +0000 (19:52 +0000)]
make sure we don't call pa_source_post() for a monitor source after it was unlinked

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

17 years agoIf PTHREAD_PRIO_INHERIT mutexes are not available fall back to normal mutexes
Lennart Poettering [Tue, 18 Sep 2007 19:51:26 +0000 (19:51 +0000)]
If PTHREAD_PRIO_INHERIT mutexes are not available fall back to normal mutexes

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

17 years agoport module-rtp-send.c to lock-free core
Lennart Poettering [Tue, 18 Sep 2007 17:41:51 +0000 (17:41 +0000)]
port module-rtp-send.c to lock-free core

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

17 years agoactually close the alsa device before we try to reopen it as plughw
Lennart Poettering [Tue, 18 Sep 2007 12:53:42 +0000 (12:53 +0000)]
actually close the alsa device before we try to reopen it as plughw

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

17 years agostrtof() is a rather recent addition to C. Fall back to strtod() if it isn't
Pierre Ossman [Tue, 18 Sep 2007 10:47:03 +0000 (10:47 +0000)]
strtof() is a rather recent addition to C. Fall back to strtod() if it isn't
available.

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

17 years agoNSIG seems to be more common than _NSIG.
Pierre Ossman [Tue, 18 Sep 2007 10:45:54 +0000 (10:45 +0000)]
NSIG seems to be more common than _NSIG.

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

17 years agoEmulate lrintf with simple truncation if it isn't available.
Pierre Ossman [Tue, 18 Sep 2007 10:38:07 +0000 (10:38 +0000)]
Emulate lrintf with simple truncation if it isn't available.

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

17 years agoMake sure the header file is only included on linux (as this is a linux-only
Pierre Ossman [Tue, 18 Sep 2007 10:36:17 +0000 (10:36 +0000)]
Make sure the header file is only included on linux (as this is a linux-only
feature).

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

17 years agoNSIG is not defined by neither C99 nor POSIX so we can't rely on it.
Pierre Ossman [Tue, 18 Sep 2007 08:57:54 +0000 (08:57 +0000)]
NSIG is not defined by neither C99 nor POSIX so we can't rely on it.

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

17 years agoadd LADSPA sink than can be piggy-backed ontop of another sink
Lennart Poettering [Mon, 17 Sep 2007 22:42:20 +0000 (22:42 +0000)]
add LADSPA sink than can be piggy-backed ontop of another sink

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

17 years agoprint a message when we fall back on plughw
Lennart Poettering [Mon, 17 Sep 2007 22:40:42 +0000 (22:40 +0000)]
print a message when we fall back on plughw

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

17 years agoadd a locale-independant pa_atof() implementation
Lennart Poettering [Mon, 17 Sep 2007 22:39:51 +0000 (22:39 +0000)]
add a locale-independant pa_atof() implementation

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

17 years agohide sig2str-test
Lennart Poettering [Mon, 17 Sep 2007 22:38:39 +0000 (22:38 +0000)]
hide sig2str-test

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

17 years agofall back to plughw: if hw: doesn't work
Lennart Poettering [Mon, 17 Sep 2007 17:00:50 +0000 (17:00 +0000)]
fall back to plughw: if hw: doesn't work

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

17 years agoRename pa_strsignal() to pa_sig2str(), since we return the symbolical signal name...
Lennart Poettering [Mon, 17 Sep 2007 15:26:18 +0000 (15:26 +0000)]
Rename pa_strsignal() to pa_sig2str(), since we return the symbolical signal name, not a human readable string. This follows the Solaris API of sig2str() a bit. Also, add all remaining signals to the list of signal names.

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

17 years agodrop a couple of WARNING prefixes in log messages, since we have pa_log_warn anyway...
Lennart Poettering [Mon, 17 Sep 2007 14:03:04 +0000 (14:03 +0000)]
drop a couple of WARNING prefixes in log messages, since we have pa_log_warn anyway for marking warnings especially

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

17 years agoonce.c is no longer POSIX specific. Since it is now considerably more advanced than...
Lennart Poettering [Mon, 17 Sep 2007 13:50:13 +0000 (13:50 +0000)]
once.c is no longer POSIX specific. Since it is now considerably more advanced than it used to be, use it on windows, too

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

17 years agoon Linu disable lazy binding altogether
Lennart Poettering [Mon, 17 Sep 2007 13:32:46 +0000 (13:32 +0000)]
on Linu disable lazy binding altogether

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

17 years agoadd missing initialization
Lennart Poettering [Mon, 17 Sep 2007 13:01:04 +0000 (13:01 +0000)]
add missing initialization

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

17 years agoAdd a special ltdl .so loader that avoids lazy frelocations during runtime
Lennart Poettering [Mon, 17 Sep 2007 12:31:06 +0000 (12:31 +0000)]
Add a special ltdl .so loader that avoids lazy frelocations during runtime

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

17 years agouse priority inheritance on mutexes where applicable
Lennart Poettering [Mon, 17 Sep 2007 00:32:51 +0000 (00:32 +0000)]
use priority inheritance on mutexes where applicable

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

17 years agoadd proper boolean type pa_bool_t
Lennart Poettering [Sun, 16 Sep 2007 23:28:56 +0000 (23:28 +0000)]
add proper boolean type pa_bool_t

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

17 years agouse gcc const and pure function attributes wherever applicable
Lennart Poettering [Sun, 16 Sep 2007 22:42:03 +0000 (22:42 +0000)]
use gcc const and pure function attributes wherever applicable

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

17 years agoadd a new module module-remap-sink which can be used to remap the channel maps of...
Lennart Poettering [Sun, 16 Sep 2007 22:03:19 +0000 (22:03 +0000)]
add a new module module-remap-sink which can be used to remap the channel maps of an already existant sink. one use case is to create a virtual sink that redirects stereo data to the rear speakers of a surround card.

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

17 years agoadd a "length" argument to the seek functions, as an optimization to request a certai...
Lennart Poettering [Sun, 16 Sep 2007 22:00:38 +0000 (22:00 +0000)]
add a "length" argument to the seek functions, as an optimization to request a certain block size if any data needs to be generated. this is merely a hint.

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

17 years agosplit memblocks into multiples of the mempool tile size
Lennart Poettering [Sun, 16 Sep 2007 21:58:04 +0000 (21:58 +0000)]
split memblocks into multiples of the mempool tile size

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

17 years agoadd new API pa_mempool_block_size_max() to query the maximum tile size
Lennart Poettering [Sun, 16 Sep 2007 21:57:15 +0000 (21:57 +0000)]
add new API pa_mempool_block_size_max() to query the maximum tile size

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

17 years ago* add a new resampler "copy" which is does not change sample rates but copies data...
Lennart Poettering [Sun, 16 Sep 2007 21:56:38 +0000 (21:56 +0000)]
* add a new resampler "copy" which is does not change sample rates but copies data unmodified from input to output.
* add a new API pa_resampler_max_block_size() which can be used to determine the maximum input buffer size for the resampler so that the bounce buffers don't grow larger then the mempool tile size

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

17 years agoproperly define MAX/MIN macros
Lennart Poettering [Sun, 16 Sep 2007 21:54:12 +0000 (21:54 +0000)]
properly define MAX/MIN macros

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

17 years agoadd missing header file changes for frame alignment apis
Lennart Poettering [Sun, 16 Sep 2007 15:10:16 +0000 (15:10 +0000)]
add missing header file changes for frame alignment apis

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

17 years agobe a little bit more elaborate on the reason why we drop to software volume control...
Lennart Poettering [Sun, 16 Sep 2007 15:09:45 +0000 (15:09 +0000)]
be a little bit more elaborate on the reason why we drop to software volume control if hw is not featureful enough for us

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

17 years agoadd frame alignment APIs; don't require memory to be writable when silencing it ...
Lennart Poettering [Sun, 16 Sep 2007 15:05:26 +0000 (15:05 +0000)]
add frame alignment APIs; don't require memory to be writable when silencing it (required of the mmap modes drivers where the hw data needs to be silenced, although it is not writable to others)

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