summaryrefslogtreecommitdiffstats
path: root/src/pulsecore
Commit message (Collapse)AuthorAgeFilesLines
* NSIG is not defined by neither C99 nor POSIX so we can't rely on it.Pierre Ossman2007-09-181-2/+7
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1849 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add a locale-independant pa_atof() implementationLennart Poettering2007-09-172-2/+60
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1846 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Rename pa_strsignal() to pa_sig2str(), since we return the symbolical signal ↵Lennart Poettering2007-09-173-18/+81
| | | | | | 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
* drop a couple of WARNING prefixes in log messages, since we have pa_log_warn ↵Lennart Poettering2007-09-176-17/+15
| | | | | | anyway for marking warnings especially git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1842 fefdeb5f-60dc-0310-8127-8f9354f1896f
* once.c is no longer POSIX specific. Since it is now considerably more ↵Lennart Poettering2007-09-172-69/+0
| | | | | | 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
* use priority inheritance on mutexes where applicableLennart Poettering2007-09-175-11/+28
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1837 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add proper boolean type pa_bool_tLennart Poettering2007-09-169-56/+71
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1836 fefdeb5f-60dc-0310-8127-8f9354f1896f
* use gcc const and pure function attributes wherever applicableLennart Poettering2007-09-164-10/+29
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1835 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add a "length" argument to the seek functions, as an optimization to request ↵Lennart Poettering2007-09-169-45/+89
| | | | | | 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
* split memblocks into multiples of the mempool tile sizeLennart Poettering2007-09-161-3/+6
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1832 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add new API pa_mempool_block_size_max() to query the maximum tile sizeLennart Poettering2007-09-162-1/+9
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1831 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * add a new resampler "copy" which is does not change sample rates but ↵Lennart Poettering2007-09-162-3/+67
| | | | | | | | | 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
* properly define MAX/MIN macrosLennart Poettering2007-09-161-2/+7
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1829 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add missing header file changes for frame alignment apisLennart Poettering2007-09-161-0/+4
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1828 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add frame alignment APIs; don't require memory to be writable when silencing ↵Lennart Poettering2007-09-161-2/+21
| | | | | | 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
* count corked streams per sink/source and make pa_sink_used_by() return only ↵Lennart Poettering2007-09-156-6/+63
| | | | | | the number of streams that are not corked. Introduce pa_sink_linked_by() returning the number of streams connected at all. This will allow suspending of sinks/sources when all streams connected to a sink are corked. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1824 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Move attaching/detaching from a pa_rtpoll into pa_sink proper, remove it ↵Lennart Poettering2007-09-145-5/+131
| | | | | | from module-combine git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1823 fefdeb5f-60dc-0310-8127-8f9354f1896f
* simplify rt loops a bit by moving more code into pa_rtpoll. It is now ↵Lennart Poettering2007-09-1412-99/+115
| | | | | | possible to attach "work" functions to a pa_rtpoll_item, which will be called in each loop iteration. This allows us to hide the message processing in the RT loops and to drop the seperate sink_input->process hooks. Basically, only the driver-specific code remains in the RT loops. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1822 fefdeb5f-60dc-0310-8127-8f9354f1896f
* explicitly destory TLS data before destroying TLSLennart Poettering2007-09-141-2/+8
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1821 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add two new macros PA_ONCE_BEGIN and PA_ONCE_END which allow usage of ↵Lennart Poettering2007-09-142-19/+64
| | | | | | pa_once without declaring a function to be called git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1820 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix two typos in reference count handlingLennart Poettering2007-09-142-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1818 fefdeb5f-60dc-0310-8127-8f9354f1896f
* make newer gcc shut upLennart Poettering2007-09-142-3/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1817 fefdeb5f-60dc-0310-8127-8f9354f1896f
* extend rtpoll API to allow registration of arbitray functions to be executed ↵Lennart Poettering2007-09-123-44/+112
| | | | | | in the event loop. Add priority system for specifying the order of these functions. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1816 fefdeb5f-60dc-0310-8127-8f9354f1896f
* reindent, and s/assert/pa_assert/gLennart Poettering2007-09-121-57/+66
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1814 fefdeb5f-60dc-0310-8127-8f9354f1896f
* change pa_modargs_get_channel_map() to take an extra argument for specifying ↵Lennart Poettering2007-09-122-5/+5
| | | | | | the name of the modargs attribute to parse git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1813 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add new pa_pipe_close() API to close two fds at the same timeLennart Poettering2007-09-123-2/+16
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1812 fefdeb5f-60dc-0310-8127-8f9354f1896f
* consolidate close() calls to pa_close(), and make sure on every occasion ↵Lennart Poettering2007-09-128-55/+63
| | | | | | that we handle failures of close() sensibly git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1811 fefdeb5f-60dc-0310-8127-8f9354f1896f
* on systems where we know that POSIX shm is mapped to /dev/shm, add the ↵Lennart Poettering2007-09-112-5/+115
| | | | | | ability to cleanup stale SHM segments. (Right now only Linux) git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1810 fefdeb5f-60dc-0310-8127-8f9354f1896f
* remaining s/assert/pa_assert/ and refcnt.h modernizationsLennart Poettering2007-09-1145-672/+911
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1809 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Rework core-error.c on top of PA_STATIC_TLS_DECLARE, the windows specific ↵Lennart Poettering2007-09-111-154/+26
| | | | | | parts need to be moved to thread-win32.c git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1808 fefdeb5f-60dc-0310-8127-8f9354f1896f
* explcitly initialize tls memory to NULLLennart Poettering2007-09-111-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1807 fefdeb5f-60dc-0310-8127-8f9354f1896f
* more modernizations, s/assert/pa_assert/gLennart Poettering2007-09-119-189/+387
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1806 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add 'wait' parameter to pa_rtpoll_run(), if zero pa_rtpoll_runn will only ↵Lennart Poettering2007-09-112-3/+9
| | | | | | update the struct pollfd but not wait for an event git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1803 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add globally defined PA_PATH_SEP macro, replacing private per-file macrosLennart Poettering2007-09-112-5/+11
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1801 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add missing config.h includesLennart Poettering2007-09-113-0/+12
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1800 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Instead of including config.h from header files, check whether PACKAGE is ↵Lennart Poettering2007-09-115-9/+13
| | | | | | defined and if not, fail (thus using PACKAGE as a check for inclusion of config.h) git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1799 fefdeb5f-60dc-0310-8127-8f9354f1896f
* unify static TLS support, make use of gcc __thread attribute if availableLennart Poettering2007-09-105-29/+44
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1797 fefdeb5f-60dc-0310-8127-8f9354f1896f
* make sure we send each memblock only once when recording, not twiceLennart Poettering2007-09-101-2/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1793 fefdeb5f-60dc-0310-8127-8f9354f1896f
* minor cleanupLennart Poettering2007-09-102-2/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1792 fefdeb5f-60dc-0310-8127-8f9354f1896f
* make the memchunk writeable before silencing itLennart Poettering2007-09-101-0/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1791 fefdeb5f-60dc-0310-8127-8f9354f1896f
* beef up commentLennart Poettering2007-09-101-1/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1790 fefdeb5f-60dc-0310-8127-8f9354f1896f
* document that the native amd64 atomic ops implementation is incompleteLennart Poettering2007-09-101-0/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1785 fefdeb5f-60dc-0310-8127-8f9354f1896f
* posix_madvise and posix_fadvise aren't present on all systems.Pierre Ossman2007-09-103-3/+9
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1783 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Monotonic clock is optional so treat is as such.Pierre Ossman2007-09-101-1/+5
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1780 fefdeb5f-60dc-0310-8127-8f9354f1896f
* POSIX realtime clock functions are in time.h so make sure to include it.Pierre Ossman2007-09-101-0/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1779 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix an assert when runnig module-oss in record only-mode. optimize ↵Lennart Poettering2007-09-061-9/+22
| | | | | | allocation of memblocks on playback git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1777 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix copynpaste errorLennart Poettering2007-09-061-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1775 fefdeb5f-60dc-0310-8127-8f9354f1896f
* update default config:Lennart Poettering2007-09-061-0/+1
| | | | | | | | - check for existance of modules before loading them - disable all event sounds except hotplug by default git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1773 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add native amd64 atomic int implementationLennart Poettering2007-09-041-4/+83
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1770 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix a couple of compiler warningsLennart Poettering2007-09-043-4/+5
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1768 fefdeb5f-60dc-0310-8127-8f9354f1896f