summaryrefslogtreecommitdiffstats
path: root/src/polypcore
Commit message (Collapse)AuthorAgeFilesLines
* * modify pa_channel_map_init_auto() to take an extra argument specifying the ↵Lennart Poettering2006-05-169-69/+114
| | | | | | | | | standard to use (ALSA, AIFF, ...) * add some more validity checks to pa_source_new(),pa_sink_new(),pa_sink_input_new(),pa_source_output_new() git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@888 fefdeb5f-60dc-0310-8127-8f9354f1896f
* instead of kicking clients with invalid UTF8 stream names, filter invalid ↵Lennart Poettering2006-05-161-14/+26
| | | | | | characters and use that instead git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@881 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add double include protectionLennart Poettering2006-05-161-0/+5
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@878 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * remove "const" from return type of pa_utf8_filter() since it desn't make ↵Lennart Poettering2006-05-162-5/+5
| | | | | | | | | any sense * fix pa_utf8_filter() to not skip the next character too if it found an invalid one git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@877 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * fix segfault in pa_utf8_validate()Lennart Poettering2006-05-161-5/+11
| | | | | | | | * remove some compiler warnings * use our own pa_xmalloc() implementation instead of libc's malloc() git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@874 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Add function to filter a string of any invalid UTF-8 sequences. User mustPierre Ossman2006-05-152-8/+54
| | | | | | | free() the result. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@872 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Clean up the UTF-8 validation code.Pierre Ossman2006-05-151-78/+76
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@870 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Include utf8.h for the validation function.Pierre Ossman2006-05-151-0/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@867 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add utf8 validity checking to esound protocolLennart Poettering2006-05-141-0/+8
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@865 fefdeb5f-60dc-0310-8127-8f9354f1896f
* 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