summaryrefslogtreecommitdiff
path: root/src/modules/module-esound-sink.c
AgeCommit message (Collapse)AuthorFilesLines
2016-07-04pulsecore: Move pa_core structure into its own headerArun Raghavan1-0/+1
The idea is to allow some parts of the code to use pa_core as an opaque structure and access required members via API, over which we can then perform some form of access control Signed-off-by: Arun Raghavan <arun@arunraghavan.net>
2015-01-14update FSF addresses to FSF web pageOndrej Holecek1-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.
2014-11-09rtpoll: Drop extra wait_op argument to pa_rtpoll_run()Peter Meerwald1-1/+1
is always true, not used Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
2014-06-24esound, native: Pass an absolute path to pa_authkey_load() when using a file ↵Tanu Kaskinen1-1/+12
in the home directory If a relative path is passed to pa_authkey_load(), it will interpret the path as relative to the home directory. This is wrong, because relative paths should be interpreted to be relative to the config home directory. Before fixing pa_authkey_load(), this patch prepares for the change by using absolute paths when the file actually needs to be in the home directory (i.e. the fallback cookie path for the native protocol and the default cookie path for the esound protocol).
2014-06-24authkey: Rename pa_authkey_load_auto() to pa_authkey_load()Tanu Kaskinen1-1/+1
pa_authkey_load() was removed earlier, so the _auto suffix isn't necessary any more.
2013-07-04Remove pa_bool_t and replace it with bool.poljar (Damir Jelić)1-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
2013-06-14iochannel: Avoid unnecessary wakeup after successful writeDavid Henningsson1-1/+1
To save some CPU (in low latency scenarios), don't re-enable the "writable" event after it has succeeded. It is very likely the next write will succeed right away too. This means that we always need to handle EAGAIN/EWOULDBLOCK as a successful write of 0 bytes, so I also verified that all callers to pa_iochannel_write handled this correctly. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2012-11-16modules: Micro-optimisation for rewind_requested pathsArun Raghavan1-1/+1
Since some devices can be chatty with regards to how often they return from poll(), this adds a PA_UNLIKELY() to all the the rewind_requested checks in our sink modules to make the general case (no rewind was requested) the fast path.
2012-11-16sink: Process rewind requests also when suspended.Tanu Kaskinen1-3/+2
When a rewind is requested on a sink input, the request parameters are stored in the pa_sink_input struct. The parameters are reset during rewind processing, and if the sink decides to ignore the rewind request due to being suspended, stale parameters are left in pa_sink_input. It's particularly problematic if the rewrite_bytes parameter is left at -1, because that will prevent all future rewind processing on that sink input. So, in order to avoid stale parameters, every rewind request needs to be processed, even if the sink is suspended. Reported-by: Uoti Urpala
2012-05-15auth: move cookie file to ~/.config/pulse/cookieLennart Poettering1-1/+1
In order to follow XDG basedir, read the cookie file from ~/.config/pulse/cookie if possible, but fall back to the old file. if it doesn't exist.
2011-11-27win32: Avoid some compiler warnings when cross-compiling for mingw32Maarten Bosmans1-1/+1
Autoconf documentation says that AC_FUNC_SELECT_ARGTYPES shouldn't be used anyway.
2011-06-22Remove unnecessary #includesMaarten Bosmans1-4/+0
2011-02-17Apply #ifdefs around functionality not available on win32Maarten Bosmans1-0/+9
And also the reverse: around some win32 specific functionality
2011-02-17Use <pulsecore/socket.h> instead of <sys/socket.h>Maarten Bosmans1-1/+1
The check whether POSIX socket.h or WIN32 winsock2.h must be included can be made centrally. The downside is that some functionality of e.g. arpa/inet.h is also implemented in winsock.h, so that some files that don't use socket functions, but do use inet.h functions, must also include pulsecore/socket.h. (as well as arpa/inet.h)
2011-02-17Clean up <poll.h> includesMaarten Bosmans1-1/+2
Instead <pulsecore/poll.h> should be included. That file includes poll.h on platform where it is appropriate. Also remove some unnecessary <ioctl.h> includes.
2010-05-07thread: name all threads so that the names appear in /proc/$PID/task/$TID/commLennart Poettering1-1/+1
2009-06-22Merge most of elmarco/rtclock2Lennart Poettering1-8/+9
Merge commit 'e4d914c945c13d23b131d7ba75fbdd03cb6d0043'
2009-06-20Base mainloop on pa_rtclock_now()Marc-André Lureau1-1/+1
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-2/+3
2009-06-19core: get rid of rt sig/timer handling since modern Linux' ppooll() is ↵Lennart Poettering1-1/+0
finally fixed for granularity
2009-06-19perl -p -i -e 's/pa_rtclock_usec/pa_rtclock_now/g' `find . -name '*.[ch]'`Marc-André Lureau1-5/+5
2009-05-28modules: add {sink|source|card}_properties argument to all modulesLennart Poettering1-4/+12
2009-04-05Modify smoothing code to make cubic interpolation optional and allow 'quick ↵Lennart Poettering1-2/+9
fixups' on resuming The primary reason for this change is to allow time graphs that do not go through the origin and hence smoothing starting from the origin is not desired. This change will allow passing time data into the smoother while paused and then abruptly use that data without smoothing using the 'quick fixup' flag when resuming. Primary use case is allowing recording time graphs where the data recorded originates from a time before the stream was created. The resulting graft will be shifted and should not be smoothened to go through the origin.
2009-03-25beef up esd sink properties a bitLennart Poettering1-1/+2
2009-03-25initialize max_request to SO_SNDBUFLennart Poettering1-0/+10
2009-03-03Use LGPL 2.1 on all files previously using LGPL 2Colin Guthrie1-1/+1
2009-01-27don't make m-e-s hit an assert when the latency is queriedLennart Poettering1-1/+1
2009-01-22include PA_SINK_INVALID_STATE in all switch/case statements to make gcc shut upLennart Poettering1-0/+1
2009-01-15rework module usage counter stuff to be pull basedLennart Poettering1-0/+9
2008-08-19add a few more gcc warning flags and fix quite a few problems found by doing soLennart Poettering1-8/+8
2008-08-09don't use PA_GCC_UNUSED anymoreLennart Poettering1-2/+2
2008-08-05fix shutdown when --disallow-module-loading=1 is passedLennart Poettering1-2/+2
2008-06-26make sure to call process_rewind() under all circumstances before we do the ↵Lennart Poettering1-0/+4
next loop iteration
2008-06-18get rid of svn $ keywordsLennart Poettering1-2/+0
2008-05-15merge glitch-free branch back into trunkLennart Poettering1-18/+24
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2445 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-11-09tag modules that may only be loaded once at most especially, and enforce ↵Lennart Poettering1-4/+5
that in the module loader git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2043 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-11-04fix two alignment issues found by the debian buildd gcc on sparcLennart Poettering1-1/+4
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2022 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-10-29ignore network sinks/sourcesLennart Poettering1-1/+1
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1988 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-10-29downgrade a few log messagesLennart Poettering1-3/+3
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1978 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-10-28merge 'lennart' branch back into trunk.Lennart Poettering1-127/+350
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1971 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-02-13Add copyright notices to all relevant files. (based on svn log)Pierre Ossman1-0/+2
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1426 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-01-04Huge trailing whitespace cleanup. Let's keep the tree pure from here on,Pierre Ossman1-29/+29
mmmkay? git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1418 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-11-06Revert r1404 and keep it on a development branch until it is fully tested.Pierre Ossman1-9/+2
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1409 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-09-26rework memory block management to be thread-safe and mostly lock-free.Lennart Poettering1-2/+9
pa_memblock is now an opaque structure. Access to its fields is now done through various accessor functions in a thread-safe manner. pa_memblock_acquire() and pa_memblock_release() are now used to access the attached audio data. Why? To allow safe manipulation of the memory pointer maintained by the memory block. Internally _acquire() and _release() maintain a reference counter. Please do not confuse this reference counter whith the one maintained by pa_memblock_ref()/_unref()! As a side effect this patch removes all direct usages of AO_t and replaces it with pa_atomic_xxx based code. This stuff needs some serious testing love. Especially if threads are actively used. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1404 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-08-18remove all occurences of Lennart Poettering1-12/+12
pa_logXXX(__FILE__": and replace them by pa_logXXX(" git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1272 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-08-12make use of pa_sink_used_by()/pa_source_used_by() wherever applicableLennart Poettering1-1/+1
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1227 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-08-11don't set the sink/source descriptions manually, use the new functions ↵Lennart Poettering1-1/+4
pa_{sink,source}_set_description() instead git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1205 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-06-19replace a few remaining uppercase "Polypaudio" occurences with "PulseAudio"Lennart Poettering1-1/+1
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1036 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-06-19big s/polyp/pulse/gLennart Poettering1-16/+16
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1033 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-25* split pa_cstrerror() into its own file polypcore/core-error.[ch]Lennart Poettering1-1/+1
* fix building of padsp * remove a warning when compiling padsp.c git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@972 fefdeb5f-60dc-0310-8127-8f9354f1896f