Commit graph

1546 commits

Author SHA1 Message Date
Pierre Ossman
6d2a9367ba Do WSAStartup() in the DLL entry routine instead of at context creation.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@837 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-11 11:02:25 +00:00
Lennart Poettering
26870176ba fix handling of timing status requests
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@836 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-09 15:16:12 +00:00
Pierre Ossman
4e71f20d6c Add stubs for the threaded main loop so that we can compile it on
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
2006-05-09 08:39:26 +00:00
Pierre Ossman
06e1867307 Use pa_msleep() to get platform independence.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@833 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-09 08:38:37 +00:00
Lennart Poettering
df3306c4af rework the simple API to make use of the new threaded mainloop implementation
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@832 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-06 20:58:28 +00:00
Lennart Poettering
4b4c8fd152 * optionally, make pa_threaded_mainloop_signal() wait until the main thread took over control
* more header file comments


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@831 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-06 20:58:02 +00:00
Lennart Poettering
5f9bbf005a add support for reading audio data from a file instead of plain STDIN in pacat-simple.c
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@830 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-06 20:56:43 +00:00
Lennart Poettering
bb6c45dee8 remove bogus check that disallowed latency interpolation and stuff for record streams
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@829 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-06 20:55:53 +00:00
Lennart Poettering
3f92e3efa9 allow signalling from event loop thread
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@828 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-06 16:38:09 +00:00
Pierre Ossman
c2c9f25100 Fix control flow in pa_oss_open(). Also fall back to half duplex when device doesn't
support full.


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@826 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-02 11:27:24 +00:00
Pierre Ossman
27cee2ef52 We need to read the cookie in binary mode for things to work correctly.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@825 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-02 09:50:37 +00:00
Pierre Ossman
1438bd49dc Windows doesn't have POSIX thread. ifdef out things for now.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@824 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-02 08:41:41 +00:00
Lennart Poettering
9e60bad5c3 add new threaded main loop implementation (with test/example)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@823 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-30 23:34:17 +00:00
Lennart Poettering
f2fbceb333 * make sure the wakeup fd is polled on wven when no other fd is registered 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
2006-04-30 23:33:04 +00:00
Pierre Ossman
6060bff186 When a control is removed, all bits are set so we need to test for that first.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@819 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-28 07:29:32 +00:00
Pierre Ossman
53930f4455 Zero the fd list since we do a memcmp on it later.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@818 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-28 07:28:48 +00:00
Lennart Poettering
cd93661dcb ouch!
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
2006-04-27 22:59:54 +00:00
Pierre Ossman
22c679e393 Clarify how the automatic channel map is generated.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@816 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-27 05:43:27 +00:00
Pierre Ossman
99612dd88d Channel map argument support for solaris.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@815 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-27 05:41:18 +00:00
Pierre Ossman
0b95438f10 Channel map argument support for waveout.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@814 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-27 05:39:11 +00:00
Lennart Poettering
9564cefdbf fail if the channel map doesn't match the sample specs
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@810 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-26 16:50:36 +00:00
Lennart Poettering
c27b1407f8 allow the user to specify an alternative channel map in paplay too
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@809 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-26 16:28:29 +00:00
Lennart Poettering
d78e466a28 fix volume range printed on --help
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@808 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-26 16:27:59 +00:00
Lennart Poettering
7b8390459b if a sample is not yet loaded, don't print rubbish about its channel map
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@807 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-26 16:27:33 +00:00
Lennart Poettering
d4bad65e22 it was a bad idea to require that a channel map doesn't contain the same position twice
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@806 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-26 16:27:01 +00:00
Lennart Poettering
c3cc14153a allow specifying the channel map to use on the command line
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@805 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-26 16:07:33 +00:00
Lennart Poettering
c478b0f118 * make a validity check of parsed channel maps before rteurning theme
* 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
2006-04-26 16:07:05 +00:00
Lennart Poettering
185a57cadd support new channel_map argument in sink/source modules
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@803 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-26 15:40:14 +00:00
Lennart Poettering
fbb0d1436c add support for parsing channel maps as module arguments
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@802 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-26 15:37:44 +00:00
Lennart Poettering
292b237e35 don't allow channel positions to be specified twice in the same channelmap
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@801 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-26 15:37:13 +00:00
Lennart Poettering
5f7cc0c870 add new test 'channelmap-test'
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@800 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-26 14:34:45 +00:00
Lennart Poettering
195e96912f * add new function pa_channel_map_parse()
* 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
2006-04-26 14:33:45 +00:00
Pierre Ossman
69096f2753 Fall back to software volume if hardware mixer cannot control all channels.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@796 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-25 07:54:49 +00:00
Pierre Ossman
f426b58e5c glibc <= 2.2 has a broken unistd.h, lacking setresuid().
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@795 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-25 07:13:44 +00:00
Lennart Poettering
820c118f9c * rework reference counting in the client libraries: now refcounting goes
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
2006-04-24 19:29:15 +00:00
Pierre Ossman
d26621371e chown() and chmod() aren't available on Windows.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@793 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-24 15:07:09 +00:00
Lennart Poettering
b92344f3ec fix a segfault when uploading samples with esound
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@791 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-23 21:25:27 +00:00
Lennart Poettering
3590ee7581 * add validity checking for sample_spec, channel_map and cvolume structures
* 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
2006-04-23 21:01:44 +00:00
Lennart Poettering
286310a563 small optimization
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@789 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-23 20:59:43 +00:00
Lennart Poettering
9b52ac4b47 fix sample uploading
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@788 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-23 20:59:31 +00:00
Lennart Poettering
e1ac42dd10 enforce maximum sample size in sample cache
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@787 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-23 20:59:09 +00:00
Lennart Poettering
cdba0527a8 * fix ref counting of pa_stream: strictly refcount from context to stream 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
2006-04-23 20:58:08 +00:00
Lennart Poettering
193fb12228 introduce a new error PA_ERR_TOOLARGE
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@785 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-23 20:56:41 +00:00
Lennart Poettering
335e23473f * when playing back a sample from the sample cache, just take a pa_volume_t 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
2006-04-23 19:49:01 +00:00
Lennart Poettering
4e61ebb981 fix multiplication of software pa_cvolumes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@783 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-23 19:46:16 +00:00
Lennart Poettering
b4ac6d05d2 allow recieving of invalid channel maps, volumes and sample specs. This 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
2006-04-23 19:42:58 +00:00
Lennart Poettering
834506318d * Merge build system patch from Igor Zubkov
* Build libparseaddr.so before libsocket-client.so


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@781 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-23 14:29:32 +00:00
Lennart Poettering
f6fc410a96 modify x11 modules to not cache the Display variable since pa_x11wrap_get_display() is now used as notification that the x11 output buffer needs flushing
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@778 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-22 21:51:30 +00:00
Lennart Poettering
ec65ca6ae7 when loading sound files, initialize channel map data properly
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@777 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-22 21:50:15 +00:00
Lennart Poettering
5e50f84e71 fix x11 handling
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@776 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-22 21:49:30 +00:00