summaryrefslogtreecommitdiffstats
path: root/src/polypcore
Commit message (Collapse)AuthorAgeFilesLines
* check for valid utf8 strings Lennart Poettering2006-05-141-20/+24
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@862 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add utf8 validity checking APILennart Poettering2006-05-142-0/+142
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@861 fefdeb5f-60dc-0310-8127-8f9354f1896f
* update todoLennart Poettering2006-05-141-3/+4
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@860 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * add new parameter to pa_open_config_file() to specify open modeLennart Poettering2006-05-149-26/+35
| | | | | | | | * modify pa_sink_input_new() to take initial volume settings as argument * call pa_sink_input_set_volume() when changing stream volume in protocol-esound.c to make sure that subscribe events are issued properly git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@858 fefdeb5f-60dc-0310-8127-8f9354f1896f
* modify argument order of pa_client_new() to actually match how it is usually ↵Lennart Poettering2006-05-142-2/+2
| | | | | | called git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@857 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix esound sample cache namesLennart Poettering2006-05-131-1/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@856 fefdeb5f-60dc-0310-8127-8f9354f1896f
* don't hit an assert when trying to resample data for 6channel audioLennart Poettering2006-05-131-1/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@853 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix hangup detection for recording streamsLennart Poettering2006-05-111-5/+7
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@849 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix iochannel for hangup signalsLennart Poettering2006-05-111-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@848 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-115-28/+229
| | | | | | | | | 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
* 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-111-4/+13
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@837 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
* 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
* 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
* 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
* * rework reference counting in the client libraries: now refcounting goesLennart Poettering2006-04-242-3/+10
| | | | | | | | | | | | | | | 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
* 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
* * when playing back a sample from the sample cache, just take a pa_volume_t ↵Lennart Poettering2006-04-235-16/+15
| | | | | | | | | 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
* allow recieving of invalid channel maps, volumes and sample specs. This ↵Lennart Poettering2006-04-231-10/+0
| | | | | | makes handling of uninitialized data better, e.g. when sending info about lazy-load sample chache entries, where the channel mapping and sample spec is still unknown. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@782 fefdeb5f-60dc-0310-8127-8f9354f1896f
* when loading sound files, initialize channel map data properlyLennart Poettering2006-04-223-5/+10
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@777 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix x11 handlingLennart Poettering2006-04-221-0/+9
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@776 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix sample cacheLennart Poettering2006-04-221-6/+18
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@775 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add new function pa_parent_dir()Lennart Poettering2006-04-222-5/+16
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@773 fefdeb5f-60dc-0310-8127-8f9354f1896f
* first unlink the socket, the close itLennart Poettering2006-04-221-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@772 fefdeb5f-60dc-0310-8127-8f9354f1896f
* try to remove the directory where the PID file resides in after removing the ↵Lennart Poettering2006-04-221-0/+7
| | | | | | PID file git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@771 fefdeb5f-60dc-0310-8127-8f9354f1896f
* chown() and chmod() /tmp/.esd/ before checking if everything is ok with itLennart Poettering2006-04-221-1/+4
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@770 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Minor fixes for the way Windows handles sockets.Pierre Ossman2006-04-192-4/+12
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@760 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix a couple of issues I found when compiling polypaudio with gcc 2.95Lennart Poettering2006-04-182-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@754 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix code for pre-C99Lennart Poettering2006-04-181-2/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@746 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * fix pa_random_seet() function prototypeLennart Poettering2006-04-182-5/+5
| | | | | | | * drop pa_ prefix from pa_random_proper(), because it is a static function git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@745 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Make the probe for RNG sources at runtime since the configure script isn'tPierre Ossman2006-04-182-18/+60
| | | | | | | compatible with cross-compiling. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@744 fefdeb5f-60dc-0310-8127-8f9354f1896f
* initialize random seed globaly from $RANDOM_DEVICELennart Poettering2006-04-161-6/+0
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@719 fefdeb5f-60dc-0310-8127-8f9354f1896f
* correct some typesLennart Poettering2006-04-151-11/+12
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@714 fefdeb5f-60dc-0310-8127-8f9354f1896f
* minor beautificationLennart Poettering2006-04-141-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@711 fefdeb5f-60dc-0310-8127-8f9354f1896f
* include in-flux resampled chunk in latency calculations of playback streamsLennart Poettering2006-04-131-1/+7
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@705 fefdeb5f-60dc-0310-8127-8f9354f1896f
* hmm, nothing importantLennart Poettering2006-04-131-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@703 fefdeb5f-60dc-0310-8127-8f9354f1896f
* protocol change: don't send stream buffer size in latency update. This data ↵Lennart Poettering2006-04-121-2/+0
| | | | | | is redundant, since it can be calculated from write_index - read_index anyway git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@685 fefdeb5f-60dc-0310-8127-8f9354f1896f
* when flushin a memblockq, set the write index to the read indexLennart Poettering2006-04-121-0/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@683 fefdeb5f-60dc-0310-8127-8f9354f1896f
* when doing software volume adjustments, don't use the volume value as linear ↵Lennart Poettering2006-04-081-29/+15
| | | | | | factor, but pass it through pa_sw_volume_to_linear() first. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@664 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add new introspection data field for sinks/sources: a flags field which ↵Lennart Poettering2006-04-071-0/+2
| | | | | | specifies whether the sink/source supports hw volume control and latency querying git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@661 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Some memcpy arithmetic that wasn't removed when doing the redesign to updatePierre Ossman2006-04-071-1/+1
| | | | | | | the data pointer instead. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@654 fefdeb5f-60dc-0310-8127-8f9354f1896f
* remove queue length field from latency request (server side)Lennart Poettering2006-04-071-6/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@647 fefdeb5f-60dc-0310-8127-8f9354f1896f
* change pa_gettimeofday() to return a pointer to the struct timeval*, instead ↵Lennart Poettering2006-04-062-16/+18
| | | | | | of an int git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@645 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * set IPV6_V6ONLY for IPv6 sockets, to avoid warning when both ipv6 and the ↵Lennart Poettering2006-04-061-3/+12
| | | | | | | | | ipv4 sockets try to bind to the same port * enable SO_REUSEADDR only on platforms that support it git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@643 fefdeb5f-60dc-0310-8127-8f9354f1896f
* remove some GCC warnings introduced by improperly casting to (char*) instead ↵Lennart Poettering2006-04-061-13/+13
| | | | | | of (const char*) git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@642 fefdeb5f-60dc-0310-8127-8f9354f1896f