summaryrefslogtreecommitdiffstats
path: root/src/polyp
Commit message (Collapse)AuthorAgeFilesLines
* remove superfluous log messageLennart Poettering2006-05-131-2/+0
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@850 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Windows support for the threaded API.Pierre Ossman2006-05-111-14/+202
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@847 fefdeb5f-60dc-0310-8127-8f9354f1896f
* update doxygen docsLennart Poettering2006-05-111-7/+20
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@846 fefdeb5f-60dc-0310-8127-8f9354f1896f
* don't signal the accept_cond automatically when waiting for a signal eventLennart Poettering2006-05-111-1/+0
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@845 fefdeb5f-60dc-0310-8127-8f9354f1896f
* split of signal releasing into its own function and name it ↵Lennart Poettering2006-05-112-9/+21
| | | | | | pa_threaded_mainloop_accept() git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@844 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Remove some debug code that wasn't supposed to be committed.Pierre Ossman2006-05-111-5/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@842 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Handle pipes on platforms where they are non-existant of broken.Pierre Ossman2006-05-112-78/+17
| | | | | | | | | We do this by creating a TCP socket pair instead of a normal pipe. Since Windows isn't UNIX-y enough to support read()/write() on sockets, we also need a wrapper to handle read() vs recv() and write() vs send(). git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@840 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Include log header to get rid of warnings.Pierre Ossman2006-05-111-0/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@839 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Do WSAStartup() in the DLL entry routine instead of at context creation.Pierre Ossman2006-05-111-11/+0
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@837 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix handling of timing status requestsLennart Poettering2006-05-091-2/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@836 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Add stubs for the threaded main loop so that we can compile it onPierre Ossman2006-05-091-4/+46
| | | | | | | non-supported platforms (still can't run it though). git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@834 fefdeb5f-60dc-0310-8127-8f9354f1896f
* rework the simple API to make use of the new threaded mainloop implementationLennart Poettering2006-05-061-226/+226
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@832 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * optionally, make pa_threaded_mainloop_signal() wait until the main thread ↵Lennart Poettering2006-05-062-4/+39
| | | | | | | | | took over control * more header file comments git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@831 fefdeb5f-60dc-0310-8127-8f9354f1896f
* remove bogus check that disallowed latency interpolation and stuff for ↵Lennart Poettering2006-05-061-1/+0
| | | | | | record streams git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@829 fefdeb5f-60dc-0310-8127-8f9354f1896f
* allow signalling from event loop threadLennart Poettering2006-05-061-3/+0
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@828 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Windows doesn't have POSIX thread. ifdef out things for now.Pierre Ossman2006-05-021-2/+17
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@824 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add new threaded main loop implementation (with test/example)Lennart Poettering2006-04-302-0/+261
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@823 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * make sure the wakeup fd is polled on wven when no other fd is registered ↵Lennart Poettering2006-04-301-8/+10
| | | | | | | | | | for polling * initialize mainloop return value to -1 * some optimizations git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@822 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Clarify how the automatic channel map is generated.Pierre Ossman2006-04-271-1/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@816 fefdeb5f-60dc-0310-8127-8f9354f1896f
* it was a bad idea to require that a channel map doesn't contain the same ↵Lennart Poettering2006-04-261-6/+0
| | | | | | position twice git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@806 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * make a validity check of parsed channel maps before rteurning themeLennart Poettering2006-04-261-17/+25
| | | | | | | * don't overwrite the return buffer unless the parsed channel map is known to be valid git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@804 fefdeb5f-60dc-0310-8127-8f9354f1896f
* don't allow channel positions to be specified twice in the same channelmapLennart Poettering2006-04-261-1/+10
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@801 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * add new function pa_channel_map_parse()Lennart Poettering2006-04-262-37/+122
| | | | | | | | * increase PA_CHANNEL_MAP_SNPRINT_MAX * add "top" channel positions git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@799 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * rework reference counting in the client libraries: now refcounting goesLennart Poettering2006-04-249-109/+161
| | | | | | | | | | | | | | | strictly "one-way" - the "bigger" object refcounts the "smaller" one, never the other way round. * when registering for a reply packet in pdispatch, specify a function that is called when the pdispatch object is destroyed but the reply hasn't yet been recieved. * move prototype of pa_free_cb from stream.h to def.h git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@794 fefdeb5f-60dc-0310-8127-8f9354f1896f
* small optimizationLennart Poettering2006-04-231-6/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@789 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix sample uploadingLennart Poettering2006-04-231-1/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@788 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * fix ref counting of pa_stream: strictly refcount from context to stream ↵Lennart Poettering2006-04-231-7/+0
| | | | | | | | | and never vice versa to make sure that we never loose memory * don't hit an assert() in case of a timeout events git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@786 fefdeb5f-60dc-0310-8127-8f9354f1896f
* introduce a new error PA_ERR_TOOLARGELennart Poettering2006-04-232-0/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@785 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix multiplication of software pa_cvolumesLennart Poettering2006-04-231-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@783 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Win32 needs to have the socket subsystem initialised.Pierre Ossman2006-04-191-0/+11
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@758 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Having constant deferred events isn't allowed and causes problems. Use timersPierre Ossman2006-04-191-8/+16
| | | | | | | instead. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@757 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix a couple of issues I found when compiling polypaudio with gcc 2.95Lennart Poettering2006-04-184-4/+4
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@754 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Avoid including non-portable header sys/poll.h.Pierre Ossman2006-04-181-3/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@739 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * add pa_mainloop_wakeup() calls for deferred eventsLennart Poettering2006-04-161-15/+22
| | | | | | | * place pa_mainloop_wakeup() calls a little bit more carfully, to minimize needless wakeups. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@734 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add new API to replace the poll() function used by the main loop implementationLennart Poettering2006-04-162-1/+26
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@733 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Clarify behaviour of deferred events.Pierre Ossman2006-04-161-1/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@723 fefdeb5f-60dc-0310-8127-8f9354f1896f
* more documentation updatesLennart Poettering2006-04-1311-63/+106
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@697 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Documentation updatesLennart Poettering2006-04-137-25/+80
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@696 fefdeb5f-60dc-0310-8127-8f9354f1896f
* include local record memblockq in latency calculationsLennart Poettering2006-04-122-2/+15
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@694 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * dispatch defer events in pa_mainloop_dispatch() and not already in ↵Lennart Poettering2006-04-123-85/+80
| | | | | | | | | | pa_mainloop_prepare() * fix the "timeout" parameter of pa_mainloop_prepare() * remove pa_mainloop_deferred_pending() and update the simple API accordingly git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@690 fefdeb5f-60dc-0310-8127-8f9354f1896f
* remove a bunch of log messagesLennart Poettering2006-04-121-9/+8
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@688 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * rename "latency correction" to "write index correction"Lennart Poettering2006-04-123-134/+216
| | | | | | | | | | | | | * add read index invalidation code * rename "ipol_event" stuff to "auto_timing_update" * remove buffer_usec field from pa_timing_info, since it can be easily calculated from write_index and read_index anyway * add read_index_corrupt field to "pa_timing_info", similar to the already existing write_index_corrupt field * restart automatic timing update event every time a query is issued, not just when the last event elapsed * proper invalidation code for pa_stream_flush() * do tarsnport/sink/source latency correction for playback time only when device is not corked git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@686 fefdeb5f-60dc-0310-8127-8f9354f1896f
* proper validity checking for pa_context_is_pending()Lennart Poettering2006-04-121-1/+5
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@684 fefdeb5f-60dc-0310-8127-8f9354f1896f
* return the error code and not just -1 when pa_context_is_pending() failsLennart Poettering2006-04-101-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@680 fefdeb5f-60dc-0310-8127-8f9354f1896f
* validity checks for pa_context_is_pending()Lennart Poettering2006-04-102-5/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@679 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * implement PA_STREAM_AUTO_TIMING_UPDATELennart Poettering2006-04-101-4/+8
| | | | | | | * accept PA_STREAM_NOT_MONOTONOUS properly git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@673 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add new PA_STREAM_AUTO_TIMING_UPDATELennart Poettering2006-04-101-13/+24
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@672 fefdeb5f-60dc-0310-8127-8f9354f1896f
* unbreak last commit from ossmanLennart Poettering2006-04-101-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@669 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Use the modern Ki/Mi/Gi prefixes to clarify that 1024 is the base.Pierre Ossman2006-04-092-5/+5
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@668 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Big documentation update. Describe the client API in a more tutorial likePierre Ossman2006-04-0912-52/+757
| | | | | | | manner. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@667 fefdeb5f-60dc-0310-8127-8f9354f1896f