summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
* pa_write() should use a const pointer.Pierre Ossman2006-05-112-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@841 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Handle pipes on platforms where they are non-existant of broken.Pierre Ossman2006-05-118-106/+248
| | | | | | | | | 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
* ANSI codes aren't supported on Windows terminals.Pierre Ossman2006-05-111-1/+4
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@838 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Do WSAStartup() in the DLL entry routine instead of at context creation.Pierre Ossman2006-05-112-15/+13
| | | | 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-092-11/+48
| | | | | | | 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
* Use pa_msleep() to get platform independence.Pierre Ossman2006-05-091-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@833 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-063-6/+42
| | | | | | | | | took over control * more header file comments git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@831 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add support for reading audio data from a file instead of plain STDIN in ↵Lennart Poettering2006-05-061-0/+18
| | | | | | pacat-simple.c git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@830 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
* Fix control flow in pa_oss_open(). Also fall back to half duplex when device ↵Pierre Ossman2006-05-021-2/+6
| | | | | | | | | doesn't support full. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@826 fefdeb5f-60dc-0310-8127-8f9354f1896f
* We need to read the cookie in binary mode for things to work correctly.Pierre Ossman2006-05-021-2/+7
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@825 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Windows doesn't have POSIX thread. ifdef out things for now.Pierre Ossman2006-05-022-3/+23
| | | | 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-304-0/+342
| | | | 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
* When a control is removed, all bits are set so we need to test for that first.Pierre Ossman2006-04-282-0/+6
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@819 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Zero the fd list since we do a memcmp on it later.Pierre Ossman2006-04-281-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@818 fefdeb5f-60dc-0310-8127-8f9354f1896f
* ouch!Lennart Poettering2006-04-272-3/+2
| | | | | | | | | fix brown paperbag bug which was triggered when runnign "pavumeter" and specifying a sink on the command line. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@817 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
* Channel map argument support for solaris.Pierre Ossman2006-04-271-4/+15
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@815 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Channel map argument support for waveout.Pierre Ossman2006-04-271-4/+16
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@814 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fail if the channel map doesn't match the sample specsLennart Poettering2006-04-261-0/+5
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@810 fefdeb5f-60dc-0310-8127-8f9354f1896f
* allow the user to specify an alternative channel map in paplay tooLennart Poettering2006-04-261-4/+25
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@809 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix volume range printed on --helpLennart Poettering2006-04-261-2/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@808 fefdeb5f-60dc-0310-8127-8f9354f1896f
* if a sample is not yet loaded, don't print rubbish about its channel mapLennart Poettering2006-04-261-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@807 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
* allow specifying the channel map to use on the command lineLennart Poettering2006-04-261-3/+24
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@805 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
* support new channel_map argument in sink/source modulesLennart Poettering2006-04-2611-49/+158
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@803 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add support for parsing channel maps as module argumentsLennart Poettering2006-04-262-0/+58
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@802 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 test 'channelmap-test'Lennart Poettering2006-04-262-1/+32
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@800 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
* Fall back to software volume if hardware mixer cannot control all channels.Pierre Ossman2006-04-252-73/+53
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@796 fefdeb5f-60dc-0310-8127-8f9354f1896f
* glibc <= 2.2 has a broken unistd.h, lacking setresuid().Pierre Ossman2006-04-251-0/+6
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@795 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * rework reference counting in the client libraries: now refcounting goesLennart Poettering2006-04-2412-116/+175
| | | | | | | | | | | | | | | 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
* chown() and chmod() aren't available on Windows.Pierre Ossman2006-04-241-0/+4
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@793 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix a segfault when uploading samples with esoundLennart Poettering2006-04-231-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@791 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * add validity checking for sample_spec, channel_map and cvolume structuresLennart Poettering2006-04-231-2/+15
| | | | | | | | * return PA_ERR_TOOLARGE when the user tries to upload a over-sized sample * notify the user if uploading a simple faield due to some reason git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@790 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
* enforce maximum sample size in sample cacheLennart Poettering2006-04-234-6/+11
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@787 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
* * when playing back a sample from the sample cache, just take a pa_volume_t ↵Lennart Poettering2006-04-236-18/+16
| | | | | | | | | and not a pa_cvolume_t as argument for the volume. Usually it is not known to the player of theses samples how many channels it has, hence it doesn't make any sense to allow him to pass a by-channel volume structure here. * fix volume calculation when playing samples from the sample cache git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@784 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