summaryrefslogtreecommitdiff
path: root/src/map-file
Commit message (Collapse)AuthorAgeFilesLines
* volume: Add LFE balance APIDavid Henningsson2015-10-301-0/+3
| | | | | | | | | | | | | | | | | The gnome/unity-control-center UIs have a master volume slider, and three sub-sliders: balance, fade, and subwoofer. Balance and fade use PA's set_balance and set_fade APIs accordingly, but the subwoofer slider sometimes does unintuitive things. In order to make that slider behave better, let's add a LFE balance API that these volume control UIs can use instead. With this API, the UI can balance between "no subwoofer" and "only subwoofer" with "equal balance" in the middle, which would make it more consistent with the behaviour of the other sliders. BugLink: https://bugzilla.gnome.org/show_bug.cgi?id=753847 Signed-off-by: David Henningsson <david.henningsson@canonical.com>
* Client API: Add pa_stream_write_ext_free() function.Lukasz Marek2014-09-101-0/+1
| | | | | | | | New function allows to pass data pointer that is a member of the outer structure that need to be freed too when data is not needed anymore. Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* direction: Add a couple of direction helper functionsTanu Kaskinen2014-03-271-0/+2
|
* Add pa_channels_valid()Tanu Kaskinen2013-12-151-0/+1
| | | | | | I think this makes the code a bit nicer to read and write. This also reduces the chances of off-by-one errors when checking the bounds of channel count values.
* Add pa_sample_rate_valid()Tanu Kaskinen2013-12-151-0/+1
| | | | | | I think this makes the code a bit nicer to read and write. This also reduces the chances of off-by-one errors when checking the bounds of sample rate values.
* Add pa_sample_format_valid()Tanu Kaskinen2013-12-151-0/+1
| | | | | | I think this makes the code a bit nicer to read and write. This also reduces the chances of off-by-one errors when checking the bounds of the sample format value.
* context: add pa_context_load_cookie_from_file()Alexander Couzens2013-08-271-0/+1
| | | | | | | | There is no function to load the authentication cookie for a context. You can only set environment variables. This patch adds pa_context_load_cookie_from_file(). Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* pulse: Add verbose volume printing functionsTanu Kaskinen2013-07-091-0/+2
| | | | For more informative logging.
* mainloop: Add API to set thread name for threaded mainloopArun Raghavan2013-06-041-0/+1
|
* map-file: Remove pa_format_info_free2Tanu Kaskinen2013-05-201-1/+0
| | | | The function doesn't exist anymore.
* pulse: Add pa_operation_set_state_callback() APIPaul Meng2013-01-121-0/+1
| | | | | | | | | | | | | | [The original commit message didn't have any explanation why this change is made, so I'll add that information here myself. --Tanu Kaskinen] This change is from the developers of a Haskell binding[1]. According to them, this change isn't strictly necessary, but their code gets significantly cleaner if they can register an operation callback that is called when the operation is cancelled due to the context getting disconnected. [1] https://github.com/favonia/pulse
* introspect: Add functions to handle the latency offset.poljar (Damir Jelic)2012-06-301-0/+1
| | | | | | | | | | This includes updating the native protocol and the client API. A new command was added to allow setting the latency offset. Also the card list command now shows the latency offset if there are ports available. Update protocol to 27.
* proplist: Change proplist_name_valid() to be public function ↵Tanu Kaskinen2012-06-291-0/+1
| | | | | | | | pa_proplist_key_valid(). I want to check the validity in pa_tagstruct_get_proplist(), and I think also client applications might have use for this function.
* format: Allow format->sample spec conversion for compressed formatsArun Raghavan2012-03-051-1/+0
| | | | | | This allows clients to get a "fake" sample space for compressed formats that we can support. This should make size/time conversion for things like calculating buffer attributes simpler.
* format: Add API to query a property's typeArun Raghavan2012-03-051-0/+1
| | | | | | | | | Since a given property can be single-valued, an array or (in the case of ints) a range, clients need an API to figure out what type of value a property holds. This adds such an API. The actual property type enumeration is kept in the PA_PROP_* namespace and not the PA_FORMAT_INFO* namespace so that it can later be reused for properties generically if required.
* format: Update map-fileArun Raghavan2012-03-051-0/+6
| | | | Adding property getters manually for now.
* formats: Export more functions needed for a clean build.Colin Guthrie2011-09-051-0/+4
| | | | | | | | | | | | | | | | | | | | | | All of these functions are not actually defined in format.h (they are defined in internal.h) and thus should really be included only in libpulsecommon and implemented in a separate source file. However if that approach was taken, and these functions were included in libpulsecommon, then they would have a link time dependancy on libpulse (as these four functions use other pa_format_info_* functions). As the opposite is already true (libpulse depends on libpulsecommon), this is not possible as it creates a circular dependancy. Thus the only option is to just to include these four functions in the map-file, but not actually export any public headers for them. Of course users could use this implementation by defining them in their own headers, but the only practical problem with this approach is naming conflicts which is unlikely to happen. fdo#40616
* formats: The format code should be in libpulse, not libpulsecommonColin Guthrie2011-09-051-0/+1
| | | | | | | | | | | Without this change any applications calling e.g. pa_format_info_new() and friends will be explicitly linked against libpulsecommon-$MAJORMINOR.so which is something we specifically avoid as it may contain ABI/API unstable functions. Also ensure we export pa_format_info_from_string() for external use. fdo#40616
* device-restore: Change the API to include type information (sink vs. source)Colin Guthrie2011-08-181-3/+3
| | | | This changes the API, but as we have not released yet, this is OK.
* device-restore: Various fixes for the protocol extension.Colin Guthrie2011-08-091-0/+1
| | | | | | | | * Fix extension API function export list. * Ensure we trigger a subscription event when things change. * Send the index with our subscription events. * Clear out any existing formats when saving. * Call the correct extension command for subscriptions.
* protocol-native: Allow clients to know at what index underrun occurredDavid Henningsson2011-08-021-0/+1
| | | | | | | | | | | This patch introduces some extra protocol information, so protocol version is bumped. This functionality is primarily needed to solve a long standing issue in alsa-plugins, which should ignore underruns if and only if it is obsolete, i e, if more data has been written to the pipe in the meantime (which will automatically end the underrun). BugLink: http://bugs.launchpad.net/bugs/805940 Signed-off-by: David Henningsson <david.henningsson@canonical.com>
* Remove libpulse-browse and pabrowseMaarten Bosmans2011-06-241-6/+0
|
* device-restore: Add a new protocol extension for device-restore.Colin Guthrie2011-06-221-0/+5
| | | | | | This simply exposes the formats that a device supports via a simple protocol extension that will allow clients to setup what a connected receiver supports format wise.
* capture: Implement per-stream volume control for capture streams.Colin Guthrie2011-06-221-0/+2
| | | | | | | 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)
* format: Add some convenience API for setting propertiesArun Raghavan2011-05-151-0/+4
| | | | | Adds functions to set sample format, rate, channels and channel map on a format to make life easier for users of the API.
* format: Extend properties to handle lists/rangesArun Raghavan2011-05-151-0/+5
| | | | | | | | | | | | | This replaces the simple string used by pa_format_info's proplist with a JSON string (accessed via new API only). This allows us to express lists and ranges more cleanly, and embed type information for future extensibility. We use json-c for JSON parsing. This is a lightweight depdency (32 KB on my system) and avoids the hassle of having to reinvent a JSON parser. Also included is a test which verifies functionality and is valgrind-clean.
* format: Export pa_format_info_is_compatible in APIArun Raghavan2011-05-151-0/+1
| | | | This allows clients to perform checks between formats as well.
* stream: Add API to get a stream's pa_format_infoArun Raghavan2011-05-021-0/+1
|
* format: Add some convenience functions for printingArun Raghavan2011-05-021-0/+2
|
* format: Add convenience API to check if a format is PCM or notArun Raghavan2011-05-021-0/+1
|
* core: Add extended stream API to support compressed formatsArun Raghavan2011-05-021-0/+1
| | | | | | | | | | | | | | | 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
* core: Add a pa_format_info structureArun Raghavan2011-05-021-0/+4
| | | | | This will be used to represent the format of data provided by the client for both compressed and PCM formats in a new extended API.
* volume: add pa_cvolume_inc_clamp functionVladimir Kokarev2009-11-051-0/+1
| | | | | | added function to increase volume not exceeding specified limit simply changed PA_VOLUME_MAX to 'limit' in pa_cvolume_inc pa_cvolume_inc now calls pa_cvolume_inc_clamp with PA_VOLUME_MAX limit
* libpulse: introduce pa_context_get_tile_size() callLennart Poettering2009-10-281-0/+1
|
* Merge remote branch 'coling/history'Lennart Poettering2009-10-071-0/+8
|\
| * device-manager: Change the prefer/defer options to a single 'reorder' command.Colin Guthrie2009-10-011-2/+1
| | | | | | | | | | | | We put in the devices from the wire into a hashmap and then add all like type device in the database and then order them based on priority (with the ones specified on the wire always being in that order at the top of the list.
| * device-manager: Update exportsColin Guthrie2009-10-011-1/+4
| |
| * device-manager: Export device-manager extension functionsColin Guthrie2009-10-011-0/+6
| |
* | Merge branch 'master' of git://0pointer.de/pulseaudio into dbus-workTanu Kaskinen2009-08-191-0/+5
|\ \ | |/
| * volume: introduce pa_cvolume_{inc|dec}()Lennart Poettering2009-08-191-0/+2
| |
| * volume: introduce pa_cvolume_min() and pa_cvolume_min_mask()Lennart Poettering2009-08-191-0/+2
| |
| * volume: add pa_cvolume_merge() callLennart Poettering2009-08-171-0/+1
| |
* | Merge branch 'master' of git://0pointer.de/pulseaudio into dbus-workTanu Kaskinen2009-08-161-0/+2
|\ \ | |/ | | | | | | | | | | | | | | | | Conflicts: src/Makefile.am src/daemon/daemon-conf.c src/daemon/daemon.conf.in src/modules/module-stream-restore.c src/pulse/client-conf.c src/pulsecore/namereg.c
| * client: include zerocopy write calls in map fileLennart Poettering2009-07-231-0/+2
| |
* | proplist: New function: pa_proplist_equal()Tanu Kaskinen2009-08-091-0/+1
|/
* Base mainloop on pa_rtclock_now()Marc-André Lureau2009-06-201-0/+2
| | | | | | | | | | | | | | | | Move the mainloop to monotonic based time events. Introduces 4 helper functions: pa_{context,core}_rttime_{new,restart}(), that fill correctly a timeval with the rtclock flag set if the mainloop supports it. Both mainloop-test and mainloop-test-glib works with rt and timeval based time events. PulseAudio and clients should be fully functional. This patch has received several iterations, and this one as been largely untested. Signed-off-by: Marc-André Lureau <marca-andre.lureau@nokia.com>
* pulse: move pa_rtclock_now in pulsecommonMarc-André Lureau2009-06-201-0/+1
|
* libpulse: implement client side for sink/source port selection commandsLennart Poettering2009-06-171-0/+4
|
* channelmap: implement pa_channel_position_from_string()Lennart Poettering2009-06-171-0/+1
|
* volume: implement functions for multiplicating a cvolume with a scalarLennart Poettering2009-06-171-0/+2
|