summaryrefslogtreecommitdiff
path: root/src/map-file
AgeCommit message (Collapse)AuthorFilesLines
2015-10-30volume: Add LFE balance APIDavid Henningsson1-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>
2014-09-10Client API: Add pa_stream_write_ext_free() function.Lukasz Marek1-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>
2014-03-27direction: Add a couple of direction helper functionsTanu Kaskinen1-0/+2
2013-12-15Add pa_channels_valid()Tanu Kaskinen1-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.
2013-12-15Add pa_sample_rate_valid()Tanu Kaskinen1-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.
2013-12-15Add pa_sample_format_valid()Tanu Kaskinen1-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.
2013-08-27context: add pa_context_load_cookie_from_file()Alexander Couzens1-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>
2013-07-09pulse: Add verbose volume printing functionsTanu Kaskinen1-0/+2
For more informative logging.
2013-06-04mainloop: Add API to set thread name for threaded mainloopArun Raghavan1-0/+1
2013-05-20map-file: Remove pa_format_info_free2Tanu Kaskinen1-1/+0
The function doesn't exist anymore.
2013-01-12pulse: Add pa_operation_set_state_callback() APIPaul Meng1-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
2012-06-30introspect: Add functions to handle the latency offset.poljar (Damir Jelic)1-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.
2012-06-29proplist: Change proplist_name_valid() to be public function ↵Tanu Kaskinen1-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.
2012-03-05format: Allow format->sample spec conversion for compressed formatsArun Raghavan1-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.
2012-03-05format: Add API to query a property's typeArun Raghavan1-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.
2012-03-05format: Update map-fileArun Raghavan1-0/+6
Adding property getters manually for now.
2011-09-05formats: Export more functions needed for a clean build.Colin Guthrie1-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
2011-09-05formats: The format code should be in libpulse, not libpulsecommonColin Guthrie1-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
2011-08-18device-restore: Change the API to include type information (sink vs. source)Colin Guthrie1-3/+3
This changes the API, but as we have not released yet, this is OK.
2011-08-09device-restore: Various fixes for the protocol extension.Colin Guthrie1-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.
2011-08-02protocol-native: Allow clients to know at what index underrun occurredDavid Henningsson1-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>
2011-06-24Remove libpulse-browse and pabrowseMaarten Bosmans1-6/+0
2011-06-22device-restore: Add a new protocol extension for device-restore.Colin Guthrie1-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.
2011-06-22capture: Implement per-stream volume control for capture streams.Colin Guthrie1-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)
2011-05-15format: Add some convenience API for setting propertiesArun Raghavan1-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.
2011-05-15format: Extend properties to handle lists/rangesArun Raghavan1-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.
2011-05-15format: Export pa_format_info_is_compatible in APIArun Raghavan1-0/+1
This allows clients to perform checks between formats as well.
2011-05-02stream: Add API to get a stream's pa_format_infoArun Raghavan1-0/+1
2011-05-02format: Add some convenience functions for printingArun Raghavan1-0/+2
2011-05-02format: Add convenience API to check if a format is PCM or notArun Raghavan1-0/+1
2011-05-02core: Add extended stream API to support compressed formatsArun Raghavan1-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
2011-05-02core: Add a pa_format_info structureArun Raghavan1-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.
2009-11-05volume: add pa_cvolume_inc_clamp functionVladimir Kokarev1-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
2009-10-28libpulse: introduce pa_context_get_tile_size() callLennart Poettering1-0/+1
2009-10-07Merge remote branch 'coling/history'Lennart Poettering1-0/+8
2009-10-01device-manager: Change the prefer/defer options to a single 'reorder' command.Colin Guthrie1-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.
2009-10-01device-manager: Update exportsColin Guthrie1-1/+4
2009-10-01device-manager: Export device-manager extension functionsColin Guthrie1-0/+6
2009-08-19Merge branch 'master' of git://0pointer.de/pulseaudio into dbus-workTanu Kaskinen1-0/+5
2009-08-19volume: introduce pa_cvolume_{inc|dec}()Lennart Poettering1-0/+2
2009-08-19volume: introduce pa_cvolume_min() and pa_cvolume_min_mask()Lennart Poettering1-0/+2
2009-08-17volume: add pa_cvolume_merge() callLennart Poettering1-0/+1
2009-08-16Merge branch 'master' of git://0pointer.de/pulseaudio into dbus-workTanu Kaskinen1-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
2009-08-09proplist: New function: pa_proplist_equal()Tanu Kaskinen1-0/+1
2009-07-23client: include zerocopy write calls in map fileLennart Poettering1-0/+2
2009-06-20Base mainloop on pa_rtclock_now()Marc-André Lureau1-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>
2009-06-20pulse: move pa_rtclock_now in pulsecommonMarc-André Lureau1-0/+1
2009-06-17libpulse: implement client side for sink/source port selection commandsLennart Poettering1-0/+4
2009-06-17channelmap: implement pa_channel_position_from_string()Lennart Poettering1-0/+1
2009-06-17volume: implement functions for multiplicating a cvolume with a scalarLennart Poettering1-0/+2