summaryrefslogtreecommitdiff
path: root/src/modules/module-virtual-source.c
Commit message (Collapse)AuthorAgeFilesLines
* update FSF addresses to FSF web pageOndrej Holecek2015-01-141-3/+1
| | | | | | | | | FSF addresses used in PA sources are no longer valid and rpmlint generates numerous warnings during packaging because of this. This patch changes all FSF addresses to FSF web page according to the GPL how-to: https://www.gnu.org/licenses/gpl-howto.en.html Done automatically by sed-ing through sources.
* Remove pa_bool_t and replace it with bool.poljar (Damir Jelić)2013-07-041-11/+11
| | | | | | | | | | | | | | | | | commands used for this (executed from the pulseaudio/src directory): find . -regex '\(.*\.[hc]\|.*\.cc\|.*\.m4\)' -not -name 'macro.h' \ -a -not -name 'reserve.[ch]' -a -not -name 'reserve-monitor.[ch]' \ -a -not -name 'glib-mainloop.c' -a -not -name 'gkt-test.c' \ -a -not -name 'glib-mainloop.c' -a -not -name 'gkt-test.c' \ -a -not -name 'poll-win32.c' -a -not -name 'thread-win32.c' \ -a -not -name 'dllmain.c' -a -not -name 'gconf-helper.c' \ -exec sed -i -e 's/\bpa_bool_t\b/bool/g' \ -e 's/\bTRUE\b/true/g' -e 's/\bFALSE\b/false/g' {} \; and: sed -i -e '181,194!s/\bpa_bool_t\b/bool/' \ -e '181,194!s/\bTRUE\b/true/' -e \ '181,194!s/\bFALSE\b/false/' pulsecore/macro.h
* Whitespace cleanup: Remove all multiple newlinespoljar (Damir Jelić)2013-06-241-3/+0
| | | | | | | | | | | | | | | This patch removes all occurrences of double and triple newlines. Command used for this: find . -type d \( -name ffmpeg \) -prune -o \ -regex '\(.*\.[hc]\|.*\.cc\)' \ -a -not -name 'adrian-aec.*' -a -not \ -name reserve.c -a -not -name 'rtkit.*' \ -exec sed -i -e '/^$/{N;s/^\n$//}' {} \; Two passes were needed to remove triple newlines. The excluded files are mirrored files from external sources.
* Style fix: Add a space betwen the if statement and the opening bracketpoljar (Damir Jelić)2013-06-241-1/+1
| | | | | | | | | | This patch replaces every occurrence of 'if(' with 'if ('. The ffmpeg source tree was excluded since it will disappear anyways. Command used for this: find . -type d \( -name ffmpeg \) -prune -o \ -regex '\(.*\.[hc]\|.*\.cc\)' \ -exec sed -i -e 's/ if(/ if (/' {} \;
* modules: Remove obsolete may_move_to callbacksStefan Huber2013-03-061-15/+0
| | | | | | Some modules have source_output_may_move_to_cb() and sink_input_may_move_to_cb() implemented that duplicate the default behavior. Remove them.
* modules: remove obsolete comment on PA_SOURCE_OUTPUT_DONT_INHIBIT_AUTO_SUSPENDStefan Huber2013-03-061-2/+0
|
* virtual-source: remove redundant checks and callbacksStefan Huber2013-03-061-13/+0
| | | | | - do not check pa_xnew0()'s return value - remove redundant source_output_process_msg_cb()
* core: Move pa_mix() into new file mix.cPeter Meerwald2013-02-151-0/+1
| | | | | | | | | idea is to allow optimized code path (similar to volume code) and rework/specialize mixing cases to enable runtime performance improvements no functionality changes in this patch Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
* Log the reason for every suspend/resume.Tanu Kaskinen2012-12-191-0/+1
| | | | | | I was looking at a log that showed that a suspend happened (at a strange time), but the log didn't tell me why the suspend was done. This patch tries to make sure that that won't happen again.
* memblock: Add pa_memblock_acquire_chunk().Tanu Kaskinen2012-08-221-2/+1
| | | | | | Besides making the code a bit cleaner, this also gets rid of a few "cast increases required alignment of target type" warnings.
* memblockq: Improve debuggability by storing a name and a sample spec.Tanu Kaskinen2011-10-011-2/+2
| | | | | | These are not used for anything at this point, but this makes it easy to add ad-hoc debug prints that show the memblockq name and to convert between bytes and usecs.
* virtual: Make volume sharing on by defaultArun Raghavan2011-09-141-1/+1
| | | | | People who use this code (i.e. mostly filters) would presumably want volume sharing on by default.
* Plug some memory leaksMaarten Bosmans2011-08-151-0/+2
| | | | These were detected with valgrind.
* Move i18n.[ch] to src/pulsecoreMaarten Bosmans2011-08-111-1/+1
| | | | | The header is used in files troughout the tree and is not included in the public api, so it belongs in pulsecore, not in pulse.
* virtual: Fix volume callback setting.Tanu Kaskinen2011-07-211-1/+1
| | | | | | | | We want to set the volume callbacks only if volume sharing is not used. When volume sharing is used, we don't want to mess with the stream volumes. This was broken in 6c6b50
* alsa: Reinitialise the mixer on port change.Colin Guthrie2011-07-201-3/+8
| | | | | This allows us to flip from software to hardware volume control as the port's mixer path dictates.
* devices: Use wrapper functions to set the *_volume and *_mute callbacks.Colin Guthrie2011-07-191-2/+2
| | | | | | This is not currently useful but future commits will make further changes concerning automatic setting of flags and event delivery that makes this structure necessary.
* Remove unnecessary #includesMaarten Bosmans2011-06-221-6/+0
|
* capture: Implement per-stream volume control for capture streams.Colin Guthrie2011-06-221-47/+27
| | | | | | | This piggy backs onto the previous changes for protocol 22 and thus does not bump the version. This and the previous commits should be seen as mostly atomic. Apologies for any bisecting issues this causes (although I would expect these to be minimal)
* capture: Add the passthrough format negotiation to capture streams.Colin Guthrie2011-06-221-1/+1
| | | | | This helps to keep the API more symmetrical and also potentially allows support for passthrough monitor sources at some point in the future.
* filter-apply: Mark modules as being autoloadedArun Raghavan2011-05-031-0/+3
| | | | | | | (Based on Colin's review) We mark modules as being autoloaded so that they can handle this as a special case if needed (which is required by module-echo-cancel for now). This inverts how things were done and makes using these modules manually less error-prone.
* Fix up according to Coding StyleMaarten Bosmans2011-03-111-2/+2
| | | | Only whitespace changes in here
* virtual-sink/source: Remove an unused variable.Tanu Kaskinen2011-02-261-5/+0
|
* virtual-sink/source: Use a more descriptive stream name.Tanu Kaskinen2011-02-261-1/+1
|
* core: Link virtual sinks and sources to their streams.Tanu Kaskinen2011-02-221-0/+3
| | | | | | | | | | | | | | | This change doesn't add any functionality in itself, but it will be useful in the future for operating on chains of sinks or sources that are piggy-backing on each other. For example, the PA_PROP_DEVICE_MASTER_DEVICE property could be handled in the core so that each virtual device doesn't have to maintain it separately. By using the origin_sink and destination_source pointers the core is able to see at stream creation time that the stream is created by a virtual device, and then update that device's property list using the name of the master device that the stream is being connected to. The same thing can be done also when the stream is being moved from a device to another, in which case the _MASTER_DEVICE property needs updating.
* virtual-source: boilerplate virtual source for PCM processing on inputsPierre-Louis Bossart2010-02-171-0/+771