summaryrefslogtreecommitdiffstats
path: root/src/modules
Commit message (Collapse)AuthorAgeFilesLines
* clamp sample data to -1 .. 1, before passing it to the plugin; if a control ↵Lennart Poettering2007-09-211-33/+123
| | | | | | 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
* don't segfault when the master changesLennart Poettering2007-09-201-15/+9
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1875 fefdeb5f-60dc-0310-8127-8f9354f1896f
* rework module-combine againLennart Poettering2007-09-201-187/+245
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1873 fefdeb5f-60dc-0310-8127-8f9354f1896f
* render new data always in the master sink's thread, fixing missing lockingLennart Poettering2007-09-191-65/+133
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1871 fefdeb5f-60dc-0310-8127-8f9354f1896f
* make O_CLOEXEC, O_NONBLOCK and socket low latency fd ops more uniform: ↵Lennart Poettering2007-09-194-7/+9
| | | | | | 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
* fall back to plughw:, if hw: doesn't work, in the alsa source, tooLennart Poettering2007-09-182-16/+42
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1865 fefdeb5f-60dc-0310-8127-8f9354f1896f
* properly release memblock always abd as soon as possibleLennart Poettering2007-09-181-5/+6
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1864 fefdeb5f-60dc-0310-8127-8f9354f1896f
* make rtp send socket low delayLennart Poettering2007-09-181-0/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1861 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add two missing header file inclusionsLennart Poettering2007-09-181-0/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1859 fefdeb5f-60dc-0310-8127-8f9354f1896f
* bug fixes for module-rtp-recvLennart Poettering2007-09-181-9/+22
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1858 fefdeb5f-60dc-0310-8127-8f9354f1896f
* port module-rtp-send.c to lock-free coreLennart Poettering2007-09-185-250/+338
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1855 fefdeb5f-60dc-0310-8127-8f9354f1896f
* actually close the alsa device before we try to reopen it as plughwLennart Poettering2007-09-181-0/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1854 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add LADSPA sink than can be piggy-backed ontop of another sinkLennart Poettering2007-09-172-0/+1168
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1848 fefdeb5f-60dc-0310-8127-8f9354f1896f
* print a message when we fall back on plughwLennart Poettering2007-09-171-0/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1847 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fall back to plughw: if hw: doesn't workLennart Poettering2007-09-171-15/+37
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1844 fefdeb5f-60dc-0310-8127-8f9354f1896f
* drop a couple of WARNING prefixes in log messages, since we have pa_log_warn ↵Lennart Poettering2007-09-174-4/+4
| | | | | | anyway for marking warnings especially git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1842 fefdeb5f-60dc-0310-8127-8f9354f1896f
* use priority inheritance on mutexes where applicableLennart Poettering2007-09-171-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1837 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add a new module module-remap-sink which can be used to remap the channel ↵Lennart Poettering2007-09-161-0/+330
| | | | | | 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
* add a "length" argument to the seek functions, as an optimization to request ↵Lennart Poettering2007-09-162-5/+5
| | | | | | 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
* be a little bit more elaborate on the reason why we drop to software volume ↵Lennart Poettering2007-09-161-5/+6
| | | | | | 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
* trivial typoLennart Poettering2007-09-151-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1825 fefdeb5f-60dc-0310-8127-8f9354f1896f
* count corked streams per sink/source and make pa_sink_used_by() return only ↵Lennart Poettering2007-09-151-1/+1
| | | | | | 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-141-25/+19
| | | | | | 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-147-171/+65
| | | | | | 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
* call dbus_shutdown() before exiting, to make valgrind output more usefulLennart Poettering2007-09-141-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1819 fefdeb5f-60dc-0310-8127-8f9354f1896f
* extend rtpoll API to allow registration of arbitray functions to be executed ↵Lennart Poettering2007-09-127-14/+14
| | | | | | 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
* change pa_modargs_get_channel_map() to take an extra argument for specifying ↵Lennart Poettering2007-09-121-2/+2
| | | | | | 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
* consolidate close() calls to pa_close(), and make sure on every occasion ↵Lennart Poettering2007-09-126-10/+10
| | | | | | that we handle failures of close() sensibly git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1811 fefdeb5f-60dc-0310-8127-8f9354f1896f
* remaining s/assert/pa_assert/ and refcnt.h modernizationsLennart Poettering2007-09-117-15/+13
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1809 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add 'wait' parameter to pa_rtpoll_run(), if zero pa_rtpoll_runn will only ↵Lennart Poettering2007-09-117-7/+7
| | | | | | 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
* make sure that the device volume is properly read before we call ↵Lennart Poettering2007-09-101-2/+2
| | | | | | pa_sink_put() and thus make the pa_sink available git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1789 fefdeb5f-60dc-0310-8127-8f9354f1896f
* don't call pa_source_process_msg() for PA_SOURCE_MESSAGE_GET_LATENCY, since ↵Lennart Poettering2007-09-101-1/+1
| | | | | | it makes querying the latency always fail git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1784 fefdeb5f-60dc-0310-8127-8f9354f1896f
* TIOCINQ isn't present on all systems.Pierre Ossman2007-09-101-1/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1781 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix an assert when runnig module-oss in record only-mode. optimize ↵Lennart Poettering2007-09-062-14/+34
| | | | | | allocation of memblocks on playback git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1777 fefdeb5f-60dc-0310-8127-8f9354f1896f
* explicitly test for the availability of dbus_watch_get_unix_fd() before ↵Lennart Poettering2007-09-061-7/+8
| | | | | | using it. The previous version-based check didn't work anyway since the constants checked for weren't set. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1772 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix a couple of compiler warningsLennart Poettering2007-09-042-4/+4
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1768 fefdeb5f-60dc-0310-8127-8f9354f1896f
* actually add source code of module-default-device-restoreLennart Poettering2007-09-031-0/+103
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1761 fefdeb5f-60dc-0310-8127-8f9354f1896f
* header file cleanupLennart Poettering2007-09-031-2/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1759 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix dbus version check for dbus_watch_get_unix_fd()Lennart Poettering2007-09-021-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1752 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix build for dbus < 1.1.1, re #126, patch from Marc-Andre LureauLennart Poettering2007-09-021-1/+11
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1750 fefdeb5f-60dc-0310-8127-8f9354f1896f
* make use of new PA_PAGE_SIZE macroLennart Poettering2007-09-021-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1744 fefdeb5f-60dc-0310-8127-8f9354f1896f
* - fix suspend handlingLennart Poettering2007-08-311-23/+38
| | | | | | | | - set sink description properly - honour resample_method setting git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1735 fefdeb5f-60dc-0310-8127-8f9354f1896f
* port module-combine to new coreLennart Poettering2007-08-301-177/+933
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1734 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Lots of assorted minor cleanups and fixes:Lennart Poettering2007-08-309-233/+219
| | | | | | | | | | | | | | | | | | * s/disconnect/unlink/ at many places where it makes sense * make "start_corked" a normal pa_sink_input/pa_source_output flag instead of a seperate boolean variable * add generic process() function to pa_sink_input/pa_source_output vtable that can be used by streams to do some arbitrary processing in each rt loop iteration even the sink/source is suspended * add detach()/attach() functions to pa_sink_input/pa_source_output vtable that are called when ever the rtpoll object of the event thread changes * add suspend() functions to pa_sink_input/pa_source_output vtable which are called whenever the sink/source they are attached to suspends/resumes * add PA_SINK_INIT/PA_SOURCE_INIT/PA_SINK_INPUT_INIT/PA_SINK_OUTPUT_INIT states to state machines which is active between _new() and _put() * seperate _put() from _new() for pa_sink/pa_source * add PA_SOURCE_OUTPUT_DONT_MOVE/PA_SINK_INPUT_DONT_MOVE flags * make the pa_rtpoll object a property of pa_sink/pa_source to allow streams attached to them make use of it * fix skipping over move_silence * update module-pipe-source to make use of pa_rtpoll * add pa_sink_skip() as optimization in cases where the actualy data returned by pa_sink_render() doesn't matter git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1733 fefdeb5f-60dc-0310-8127-8f9354f1896f
* lower suspend timeout to 1sLennart Poettering2007-08-251-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1719 fefdeb5f-60dc-0310-8127-8f9354f1896f
* port remaining sinks to pa_rtpollLennart Poettering2007-08-224-340/+306
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1705 fefdeb5f-60dc-0310-8127-8f9354f1896f
* minor cleanupsLennart Poettering2007-08-221-29/+14
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1704 fefdeb5f-60dc-0310-8127-8f9354f1896f
* port alsa driver to make use of new pa_rtpoll objectLennart Poettering2007-08-221-140/+142
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1702 fefdeb5f-60dc-0310-8127-8f9354f1896f
* check pa_core::high_priority before becoming rt threadLennart Poettering2007-08-223-3/+6
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1694 fefdeb5f-60dc-0310-8127-8f9354f1896f
* use realtime scheduling for ALSA and OSS driver threadsLennart Poettering2007-08-163-0/+6
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1679 fefdeb5f-60dc-0310-8127-8f9354f1896f