Lennart Poettering
ac66b6af08
fall back to plughw:, if hw: doesn't work, in the alsa source, too
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1865 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-18 23:35:05 +00:00
Lennart Poettering
781cf499cf
properly release memblock always abd as soon as possible
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1864 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-18 23:24:13 +00:00
Lennart Poettering
1fd9afdf7d
make use of pa_bool_t on a few places where applicable; really start work_cb
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1863 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-18 23:21:06 +00:00
Lennart Poettering
b3093d8405
lower SO_PRIORITY priority to 6, since this is the best we get without being root
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1862 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-18 22:29:24 +00:00
Lennart Poettering
ef8df41042
make rtp send socket low delay
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1861 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-18 22:25:18 +00:00
Lennart Poettering
f44ddd1052
add new pa_socket_udp_low_delay() API
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1860 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-18 22:24:45 +00:00
Lennart Poettering
6b2fd2328a
add two missing header file inclusions
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1859 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-18 21:31:21 +00:00
Lennart Poettering
eb23601bb7
bug fixes for module-rtp-recv
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1858 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-18 19:52:45 +00:00
Lennart Poettering
8fdf054e68
make sure we don't call pa_source_post() for a monitor source after it was unlinked
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1857 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-18 19:52:20 +00:00
Lennart Poettering
ca717643ee
If PTHREAD_PRIO_INHERIT mutexes are not available fall back to normal mutexes
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1856 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-18 19:51:26 +00:00
Lennart Poettering
a558e9312e
port module-rtp-send.c to lock-free core
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1855 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-18 17:41:51 +00:00
Lennart Poettering
08d4b237a3
actually close the alsa device before we try to reopen it as plughw
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1854 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-18 12:53:42 +00:00
Pierre Ossman
4ed41f3dab
strtof() is a rather recent addition to C. Fall back to strtod() if it isn't
...
available.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1853 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-18 10:47:03 +00:00
Pierre Ossman
aff22cfc62
NSIG seems to be more common than _NSIG.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1852 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-18 10:45:54 +00:00
Pierre Ossman
03d9863980
Emulate lrintf with simple truncation if it isn't available.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1851 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-18 10:38:07 +00:00
Pierre Ossman
31dfb317fa
Make sure the header file is only included on linux (as this is a linux-only
...
feature).
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1850 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-18 10:36:17 +00:00
Pierre Ossman
df1d34753f
NSIG is not defined by neither C99 nor POSIX so we can't rely on it.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1849 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-18 08:57:54 +00:00
Lennart Poettering
4cde5073f0
add LADSPA sink than can be piggy-backed ontop of another sink
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1848 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-17 22:42:20 +00:00
Lennart Poettering
7b4f981e4f
print a message when we fall back on plughw
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1847 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-17 22:40:42 +00:00
Lennart Poettering
8ff7d567d3
add a locale-independant pa_atof() implementation
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1846 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-17 22:39:51 +00:00
Lennart Poettering
4cdf2ce202
hide sig2str-test
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1845 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-17 22:38:39 +00:00
Lennart Poettering
1ae473bd1b
fall back to plughw: if hw: doesn't work
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1844 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-17 17:00:50 +00:00
Lennart Poettering
26a1ae7bbb
Rename pa_strsignal() to pa_sig2str(), since we return the symbolical signal name, not a human readable string. This follows the Solaris API of sig2str() a bit. Also, add all remaining signals to the list of signal names.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1843 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-17 15:26:18 +00:00
Lennart Poettering
d3b898513c
drop a couple of WARNING prefixes in log messages, since we have pa_log_warn anyway for marking warnings especially
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1842 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-17 14:03:04 +00:00
Lennart Poettering
19eb7ebd4d
once.c is no longer POSIX specific. Since it is now considerably more advanced than it used to be, use it on windows, too
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1841 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-17 13:50:13 +00:00
Lennart Poettering
7f9fea74ef
on Linu disable lazy binding altogether
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1840 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-17 13:32:46 +00:00
Lennart Poettering
a1526f105d
add missing initialization
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1839 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-17 13:01:04 +00:00
Lennart Poettering
061e8068aa
Add a special ltdl .so loader that avoids lazy frelocations during runtime
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1838 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-17 12:31:06 +00:00
Lennart Poettering
2741685d3a
use priority inheritance on mutexes where applicable
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1837 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-17 00:32:51 +00:00
Lennart Poettering
61b90a0951
add proper boolean type pa_bool_t
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1836 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-16 23:28:56 +00:00
Lennart Poettering
116ddaaae9
use gcc const and pure function attributes wherever applicable
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1835 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-16 22:42:03 +00:00
Lennart Poettering
35483eeab7
add a new module module-remap-sink which can be used to remap the channel maps of an already existant sink. one use case is to create a virtual sink that redirects stereo data to the rear speakers of a surround card.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1834 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-16 22:03:19 +00:00
Lennart Poettering
1d1eda6059
add a "length" argument to the seek functions, as an optimization to request a certain block size if any data needs to be generated. this is merely a hint.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1833 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-16 22:00:38 +00:00
Lennart Poettering
5df7a85473
split memblocks into multiples of the mempool tile size
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1832 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-16 21:58:04 +00:00
Lennart Poettering
ac1ee4e675
add new API pa_mempool_block_size_max() to query the maximum tile size
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1831 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-16 21:57:15 +00:00
Lennart Poettering
fce8507179
* add a new resampler "copy" which is does not change sample rates but copies data unmodified from input to output.
...
* add a new API pa_resampler_max_block_size() which can be used to determine the maximum input buffer size for the resampler so that the bounce buffers don't grow larger then the mempool tile size
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1830 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-16 21:56:38 +00:00
Lennart Poettering
d079b4863b
properly define MAX/MIN macros
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1829 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-16 21:54:12 +00:00
Lennart Poettering
87795b0973
add missing header file changes for frame alignment apis
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1828 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-16 15:10:16 +00:00
Lennart Poettering
e17fbf0606
be a little bit more elaborate on the reason why we drop to software volume control if hw is not featureful enough for us
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1827 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-16 15:09:45 +00:00
Lennart Poettering
0469c84366
add frame alignment APIs; don't require memory to be writable when silencing it (required of the mmap modes drivers where the hw data needs to be silenced, although it is not writable to others)
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1826 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-16 15:05:26 +00:00
Lennart Poettering
298d2392f9
trivial typo
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1825 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-15 14:57:18 +00:00
Lennart Poettering
8389264d65
count corked streams per sink/source and make pa_sink_used_by() return only the number of streams that are not corked. Introduce pa_sink_linked_by() returning the number of streams connected at all. This will allow suspending of sinks/sources when all streams connected to a sink are corked.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1824 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-15 14:21:05 +00:00
Lennart Poettering
5ae4eed52e
Move attaching/detaching from a pa_rtpoll into pa_sink proper, remove it from module-combine
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1823 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-14 23:26:17 +00:00
Lennart Poettering
3396b65f15
simplify rt loops a bit by moving more code into pa_rtpoll. It is now possible to attach "work" functions to a pa_rtpoll_item, which will be called in each loop iteration. This allows us to hide the message processing in the RT loops and to drop the seperate sink_input->process hooks. Basically, only the driver-specific code remains in the RT loops.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1822 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-14 21:51:05 +00:00
Lennart Poettering
f0b9dce32e
explicitly destory TLS data before destroying TLS
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1821 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-14 21:05:47 +00:00
Lennart Poettering
bf274cb617
add two new macros PA_ONCE_BEGIN and PA_ONCE_END which allow usage of pa_once without declaring a function to be called
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1820 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-14 21:04:08 +00:00
Lennart Poettering
04ed0f9536
call dbus_shutdown() before exiting, to make valgrind output more useful
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1819 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-14 21:02:18 +00:00
Lennart Poettering
8775309234
fix two typos in reference count handling
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1818 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-14 21:01:00 +00:00
Lennart Poettering
9be0d70ea7
make newer gcc shut up
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1817 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-14 17:12:25 +00:00
Lennart Poettering
ef83a19525
extend rtpoll API to allow registration of arbitray functions to be executed in the event loop. Add priority system for specifying the order of these functions.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1816 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-09-12 22:57:29 +00:00