summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/sink-input.h
Commit message (Collapse)AuthorAgeFilesLines
* streams: Tidy up includesColin Guthrie2011-06-221-1/+0
|
* alsa-sink: Some trivial tidyupsColin Guthrie2011-06-221-1/+1
| | | | | Mostly typo fixes but also a change to make a function relating to sink inputs use more generic variable names.
* core: Factor out passthrough checks into their own functionsArun Raghavan2011-05-021-0/+2
| | | | | | | | | | Since we currently have two mechanisms to signal a passthrough connection (non-PCM format or PA_SINK_INPUT_PASSTHROUGH flag), we move all the related checks into functions and use those everywhere. This makes things more consistent, and should we decide to get rid of the flag, we only need to change pa_sink_input_*_is_passthrough() accordingly.
* core: Add extended stream API to support compressed formatsArun Raghavan2011-05-021-0/+7
| | | | | | | | | | | | | | | This is the beginning of work to support compressed formats natively in PulseAudio. This adds a pa_stream_new_extended() that takes a format structure, sends it to the server (=> protocol extension) and has the server negotiate with the appropropriate sink to figure out what format it should use. This is work in progress, and works only with PCM streams. Actual compressed format support in some sink needs to be implemented, and extensive testing is required. More details on how this is supposed to work is available at: http://pulseaudio.org/wiki/PassthroughSupport
* sink-input: Add volume_writable to pa_sink_input.Tanu Kaskinen2011-03-291-2/+4
| | | | | | | | | | This is pretty cosmetic change; there's no actual functionality added. Previously the volume_writable information was available through the pa_sink_input_is_volume_writable() function, but I find it cleaner to have a real variable. The sink input introspection variable name was also changed from read_only_volume to volume_writable for consistency.
* Revert "Add volume ramping feature - sink-input modification"Arun Raghavan2011-02-281-21/+0
| | | | | | | | | | This reverts commit 5318eb35ef3f91836084382a4f3d5ef08d322554. Conflicts: src/pulsecore/sink-input.c (part of a patch series removing all ramping code)
* Allow read-only or non-existing sink input volume.Tanu Kaskinen2011-02-221-0/+3
| | | | | | | | | | | | There are two known cases where read-only or non-existing sink input volume is relevant: passthrough streams and the planned volume sharing logic. Passthrough streams don't have volume at all, and the volume sharing logic requires read-only sink input volume. This commit is primarily working towards the volume sharing feature, but support for non-existing sink input volume is also added, because it is so closely related to read-only volume. Some unrelated refactoring in iface-stream.c creeped into this commit too (new function: stream_to_string()).
* core: Link virtual sinks and sources to their streams.Tanu Kaskinen2011-02-221-1/+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.
* sink-input: Fix commentColin Guthrie2010-10-011-1/+1
|
* AC3 passthrough supportPierre-Louis Bossart2010-08-121-1/+2
| | | | | | | | | | | | Second version after Tanu's feedback TODO: - notify client that volume control is disabled - change sink rate in passthrough mode if needed - automatic detection of passthrough mode instead of hard coded profile names Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@intel.com>
* Merge remote branch 'origin/merge-queue'Lennart Poettering2009-11-051-0/+21
|\ | | | | | | | | | | Conflicts: src/pulsecore/sink-input.c src/pulsecore/sink.c
| * Add volume ramping feature - sink-input modificationzbt2009-08-051-0/+21
| |
* | core: add an additional volume factor that is applied after resampling took ↵Lennart Poettering2009-09-111-2/+5
| | | | | | | | place
* | core: move 'flags' field into 'pa_sink_input_new_data' structure so that ↵Lennart Poettering2009-08-281-2/+3
| | | | | | | | hooks can access it
* | sink-input: extend comments on rewinding logic a bitLennart Poettering2009-08-271-1/+1
| |
* | object: speed up type verification by not relying on strcmp()Lennart Poettering2009-08-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Instead of using string contents for type identification use the address of a constant string array. This should speed up type verifications a little sind we only need to compare one machine word instead of a full string. Also, this saves a few strings. To make clear that types must be compared via address and not string contents 'type_name' is now called 'type_id'. This also simplifies the macros for declaring and defining public and private subclasses.
* | sink-input: add callbacks that are called whenever the mute/volume changesLennart Poettering2009-08-211-2/+10
| |
* | sink: volume handling rework, new flat volume logicLennart Poettering2009-08-191-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - We now implement a logic where the sink maintains two distinct volumes: the 'reference' volume which is shown to the users, and the 'real' volume, which is configured to the hardware. The latter is configured to the max of all streams. Volume changes on sinks are propagated back to the streams proportional to the reference volume change. Volume changes on sink inputs are forwarded to the sink by 'pushing' the volume if necessary. This renames the old 'virtual_volume' to 'real_volume'. The 'reference_volume' is now the one exposed to users. By this logic the sink volume visible to the user, will always be the "upper" boundary for everything that is played. Saved/restored stream volumes are measured relative to this boundary, the factor here is always < 1.0. - introduce accuracy for sink volumes, similar to the accuracy we already have for source volumes. - other cleanups.
* | core: add to FIXMEsLennart Poettering2009-08-161-0/+1
| |
* | core: make fixed latency dynamically changeableLennart Poettering2009-08-151-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | This of course makes the name 'fixed' a bit of a misnomer. However the definitions are now like this: fixed latency: the latency may change during runtime, but is solely controlled by the backend, the client has no influence. dynamic latency: the latency may change during runtime, influenced by the requests of the clients. i.e. fixed vs. dynamic is from the perspective of the client.
* | core: split of FAIL_ON_SUSPEND into KILL_ON_SUSPEND and NO_CREATE_ON_SUSPENDLennart Poettering2009-08-151-1/+2
| |
* | core: introduce pa_{sink_input|source_output}_fail_move()Lennart Poettering2009-08-151-1/+4
| |
* | core: add functions to query max_rewind/max_request values from streamsLennart Poettering2009-08-131-0/+4
| |
* | core: add assert macros for verifying calling contextLennart Poettering2009-08-131-0/+3
|/ | | | | | | This adds pa_assert_io_context() and pa_assert_ctl_context() in addition to a few related macros. When called they will fail when the current execution context is not IO resp. not control context. (aka 'thread' context vs. 'main' context)
* core: introduce new 'reference' volume for sinksLennart Poettering2009-04-131-2/+6
| | | | | | | | | | | | | | | The reference volume is to be used as reference volume for stored stream volumes. Previously if a new stream was created the relative volume was taken relatively to the virtual device volume. Due to the flat volume logic this could then be fed back to the virtual device volume. Repeating the whole story over and over would result in a device volume that would go lower, and lower and lower. This patch introduces a 'reference' volume for each sink which stays unmodified by stream volume changes even if flat volumes are used. It is only modified if the sink volumes are modified directly by the user. For further explanations see http://pulseaudio.org/wiki/InternalVolumes
* introduce relative_volume field in sink_input and make use of it on sink ↵Lennart Poettering2009-04-081-1/+7
| | | | flat volume change
* add suspend_within_thread() callbacks to pa_sink_input/pa_source_outputLennart Poettering2009-04-071-0/+4
|
* various spelling fixesMaarten Bosmans2009-04-041-1/+1
|
* pass destination source/sink when moving streams so that we can access themLennart Poettering2009-04-011-4/+6
|
* Trigger move callback a little bit earlier so that no IO thread is runningLennart Poettering2009-03-301-1/+1
|
* introduce pa_sink_input_get_relative_volume()Lennart Poettering2009-03-201-0/+1
|
* Use LGPL 2.1 on all files previously using LGPL 2Colin Guthrie2009-03-031-1/+1
|
* allow sending meta/policy events to clientsLennart Poettering2009-02-121-0/+12
|
* make return value of pa_{sink_input|source_output}_update_proplist() voidLennart Poettering2009-02-051-1/+1
|
* add a 'volume factor' that is implicitly multiplied into the volume of a ↵Lennart Poettering2009-02-051-3/+4
| | | | sink input without being visible to the outside
* remove soft volume from pa_sink_input_new_info since it should be handled ↵Lennart Poettering2009-02-041-5/+4
| | | | internally and automatically by the sink input
* make a couple of functions return proper error codesLennart Poettering2009-02-031-2/+3
|
* implement PA_STREAM_FAIL_ON_SUSPEND logicLennart Poettering2009-02-031-0/+1
|
* when changing volume, store whether it is worth remembering or noLennart Poettering2009-01-271-5/+13
|
* move flat volume logic into the core. while doing so add n_volume_steps ↵Lennart Poettering2009-01-271-25/+19
| | | | field to sinks/sources
* store requested resampling method in a seperate field and use it when create ↵Lennart Poettering2009-01-271-1/+1
| | | | a new resampler after a move
* move sink input/source output move functions into two parts so that we can ↵Lennart Poettering2009-01-231-7/+9
| | | | start the move, delete the original sink, create a new sink, finish the move; similar for source outputs
* add new dont_rewind_render flag to allow quick starts of newly created streamsLennart Poettering2009-01-151-2/+3
|
* core: add source, si, so proplist_updateMarc-André Lureau2009-01-131-0/+1
|
* Implement new flags DONT_INHIBIT_AUTO_SUSPEND and START_UNMUTEDLennart Poettering2008-10-261-1/+2
|
* add new virtual function may_move_to to sink inputs/source outputs to allow ↵Lennart Poettering2008-10-211-1/+7
| | | | modules to forbid certain connections
* volume hooksMarc-Andre Lureau2008-10-071-0/+11
| | | | Signed-off-by: Lennart Poettering <lennart@poettering.net>
* save a bit of memoryLennart Poettering2008-08-181-9/+9
|
* Rework module-combine to work with glitch-free core; add new max_request ↵Lennart Poettering2008-06-201-7/+21
| | | | field to pa_sink
* get rid of svn $ keywordsLennart Poettering2008-06-181-2/+0
|