Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Wrap clock_gettime and friends | Daniel Mack | 2009-10-31 | 1 | -6/+48 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Wed, Sep 16, 2009 at 11:48:58PM +0200, Lennart Poettering wrote: > On Wed, 16.09.09 15:15, Daniel Mack (daniel@caiaq.de) wrote: > > > From: Kim Lester <kim@dfusion.com.au> > > > > OS X does not define clockid_t or clock_gettime() and friends. > > Add a wrapper to fix this. > > Hmpf. I am not particularly happy with this. This adds a lot of > unnecessary compat code. We don't actually need implementations of > clock_getres(). All we need is some kind of check whether system > timers are accurate or whether they are rounded up to scheduling > slices. On Linux we do that check with clock_getres(), but all the > information it returns is actually not intertesting at all. We just > check if this is below some trheshold, that's all. > > clock_settime() we don't use at all! We shouldn't carry compat code > for that. > > And clock_gettime we don't really need either. We need some kind of > accurate system timers (preferably monotonic), and on Linux we use > clock_gettime() for that. But we already have a fallback there for > gettimeofday(). > > Or in other words, the current APIs pa_rtclock_get(), > pa_rtclock_hrtimer() is supposed to be the abstract API that has > different backends on different systems. I'd very much prefer if any > MacOS specific code would simply be plugged in there instead of > creating various new abstraction interfaces! Ok - what about the version below? I don't particularily like the Daniel >From 9f0a051953ec354ccdb8aa44a9845c408b26ae0b Mon Sep 17 00:00:00 2001 From: Kim Lester <kim@dfusion.com.au> Date: Wed, 16 Sep 2009 14:40:01 +0800 Subject: [PATCH] Implement pa_rtclock_get() and pa_rtclock_hrtimer() for Darwin OS X does not define clockid_t or clock_gettime() and friends. Add wrappers to fix this. Based on a patch from Kim Lester <kim@dfusion.com.au>. | |||||
* | | X11: attach X11 properties to Screen, not Display | Leszek Koltunski | 2009-10-30 | 1 | -6/+14 | |
| | | ||||||
* | | svolume: fix MMX error | Wim Taymans | 2009-10-30 | 1 | -1/+6 | |
| | | | | | | | | | | We need to sign extend the lower part of the multiplication before adding it to the higher part. Makes -1 * 0xffff work again. | |||||
* | | sink: simplify silence checks | Wim Taymans | 2009-10-30 | 1 | -12/+10 | |
| | | ||||||
* | | socket-util: drop redundant casts | Lennart Poettering | 2009-10-30 | 1 | -12/+12 | |
| | | ||||||
* | | socket-util: allocate at least sizeof(sockaddr_storage) space | Lennart Poettering | 2009-10-30 | 1 | -2/+2 | |
| | | ||||||
* | | use pa_fopen_cloexec() where applicable | Lennart Poettering | 2009-10-30 | 6 | -10/+10 | |
| | | ||||||
* | | tdb: use O_CLOEXEC if available | Lennart Poettering | 2009-10-30 | 1 | -9/+34 | |
| | | ||||||
* | | core-util: introduce pa_fopen_cloexec() | Lennart Poettering | 2009-10-30 | 2 | -2/+28 | |
| | | ||||||
* | | core-util: make sure to enable FD_CLOEXEC unconditionally to cope with ↵ | Lennart Poettering | 2009-10-30 | 1 | -3/+12 | |
| | | | | | | | | kernels that silently accept but ignore O_CLOEXEC | |||||
* | | use cloexec wrappers wherever applicable | Lennart Poettering | 2009-10-30 | 13 | -62/+22 | |
| | | ||||||
* | | core-util: introduce FD_CLOEXEC wrappers for open/socket/pipe/accept | Lennart Poettering | 2009-10-30 | 2 | -0/+85 | |
| | | ||||||
* | | simd: update test cases | Lennart Poettering | 2009-10-29 | 2 | -3/+11 | |
| | | ||||||
* | | smoother: add comments about optimization recommendations from Jason Newton | Lennart Poettering | 2009-10-29 | 1 | -0/+7 | |
| | | ||||||
* | | libpulse: introduce PA_STREAM_RELATIVE_VOLUME | Lennart Poettering | 2009-10-29 | 1 | -3/+14 | |
| | | ||||||
* | | protocol-native: if a client set volume/mute/device store it since it is ↵ | Lennart Poettering | 2009-10-28 | 1 | -2/+8 | |
| | | | | | | | | user input | |||||
* | | protocol-native: declare that user configured volumes are always absolute | Lennart Poettering | 2009-10-28 | 1 | -1/+3 | |
| | | ||||||
* | | memblock: decrease tile size to 64k again | Lennart Poettering | 2009-10-28 | 1 | -1/+1 | |
| | | ||||||
* | | Fix build when using -fweb, accept both register and memory constraints. | Diego Elio 'Flameeyes' Pettenò | 2009-10-07 | 2 | -4/+4 | |
| | | | | | | | | | | This was reported as Gentoo bug #287391 by Torsten Kaiser, and the fix was suggested by Mike Frysinger. | |||||
* | | Merge remote branch 'phish3/master' | Lennart Poettering | 2009-10-07 | 1 | -1/+1 | |
|\ \ | ||||||
| * | | module-equalizer-sink: trying new buffering strategies | Jason Newton | 2009-09-29 | 1 | -1/+1 | |
| | | | ||||||
* | | | Merge branch 'master' into dbus-work | Tanu Kaskinen | 2009-10-02 | 34 | -316/+505 | |
|\| | | | | | | | | | | | | | | Conflicts: src/daemon/daemon-conf.c | |||||
| * | | svolume: tweak constraints for 32 bits | Wim Taymans | 2009-09-23 | 2 | -4/+4 | |
| | | | | | | | | | | | | | | | | | | Tweak the constraints a little so that register starved 32bit systems can select a stack variable for the channel paramter instead of reusing one of the registers we're using in the code. | |||||
| * | | core: dump proplist when creating stream similar to how we already to it for ↵ | Lennart Poettering | 2009-09-20 | 2 | -4/+12 | |
| | | | | | | | | | | | | sinks/sources | |||||
| * | | memtrap: properly add items to linked list | Lennart Poettering | 2009-09-19 | 1 | -1/+4 | |
| | | | ||||||
| * | | namereg: choose default sink/source as soon as one becomes available | Lennart Poettering | 2009-09-18 | 1 | -1/+12 | |
| | | | ||||||
| * | | memblock: don't try to reuse PA_MEMBLOCK_APPENDED memblocks since they ↵ | Lennart Poettering | 2009-09-18 | 1 | -4/+11 | |
| | | | | | | | | | | | | usually are much bigger than we want them | |||||
| * | | socket-client: modernizations | Lennart Poettering | 2009-09-18 | 2 | -38/+24 | |
| | | | ||||||
| * | | memblock: modernizations | Lennart Poettering | 2009-09-18 | 1 | -3/+2 | |
| | | | ||||||
| * | | timeval: make timeval conversion routines handle PA_USEC_INVALID special | Lennart Poettering | 2009-09-18 | 1 | -1/+7 | |
| | | | ||||||
| * | | core-rtclock: introduce pa_timespec_store() akin pa_timeval_store() | Lennart Poettering | 2009-09-18 | 2 | -0/+15 | |
| | | | ||||||
| * | | macro: introduce PA_INT_TYPE_MIN, PA_INT_TYPE_MAX, PA_INT_TYPE_SIGNED macros | Lennart Poettering | 2009-09-18 | 1 | -0/+12 | |
| | | | ||||||
| * | | core-util: unify how we determine the temporary directory | Lennart Poettering | 2009-09-17 | 2 | -10/+25 | |
| | | | ||||||
| * | | Improve TMPDIR handling | Lennart Poettering | 2009-09-17 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | Patch from 'jnelson', http://pulseaudio.org/ticket/653 | |||||
| * | | svolume_mmx: disable test accidentaly left on | Lennart Poettering | 2009-09-17 | 1 | -1/+1 | |
| | | | ||||||
| * | | Merge remote branch 'wtay/optimize' | Lennart Poettering | 2009-09-17 | 2 | -14/+8 | |
| |\ \ | ||||||
| | * | | svolume_mmx: optimize some more | Wim Taymans | 2009-09-16 | 1 | -13/+7 | |
| | | | | | | | | | | | | | | | | | | | | | | | | We can reorder the algortihm a bit like we do for sse so that we don't need the contants and masking instructions. Saves 2 instructions for the mmx code. | |||||
| | * | | svolume_sse: fix comment | Wim Taymans | 2009-09-16 | 1 | -1/+1 | |
| | | | | ||||||
| * | | | memblock: make it easy to disable mempool usage with $PULSE_MEMPOOL_DISABLE | Lennart Poettering | 2009-09-17 | 1 | -0/+7 | |
| |/ / | ||||||
| * | | core: add an additional volume factor that is applied after resampling took ↵ | Lennart Poettering | 2009-09-11 | 2 | -10/+56 | |
| | | | | | | | | | | | | place | |||||
| * | | native: send PA_COMMAND_PLAYBACK_BUFFER_ATTR_CHANGED messages only to ↵ | Lennart Poettering | 2009-09-10 | 1 | -13/+15 | |
| | | | | | | | | | | | | clients that understand it | |||||
| * | | simd: be more precise which SIMD optimizations we activate | Lennart Poettering | 2009-09-09 | 5 | -16/+28 | |
| | | | ||||||
| * | | sample-util: add pa_convert_size() call for converting sizes between two ↵ | Lennart Poettering | 2009-09-09 | 2 | -0/+12 | |
| | | | | | | | | | | | | sample specs | |||||
| * | | ratelimit: allow non-static ratelimit structs | Lennart Poettering | 2009-09-09 | 1 | -4/+14 | |
| | | | ||||||
| * | | protocol-native: log explicitly when someone asks us to quit | Lennart Poettering | 2009-09-08 | 1 | -0/+2 | |
| | | | ||||||
| * | | core-util: properly fill in exception array for pa_reset_sigs() ↵ | Lennart Poettering | 2009-09-08 | 1 | -1/+1 | |
| | | | | | | | | | | | | (llvm-clang-analyzer) | |||||
| * | | conf-parser: properly initialize variable we free() later (llvm-clang-analyzer) | Lennart Poettering | 2009-09-08 | 1 | -1/+1 | |
| | | | ||||||
| * | | cli-command: don't necessarily ovveride failure code of files ↵ | Lennart Poettering | 2009-09-08 | 1 | -2/+0 | |
| | | | | | | | | | | | | (llvm-clang-analyzer) | |||||
| * | | cli-command: modernizations | Lennart Poettering | 2009-09-08 | 1 | -16/+16 | |
| | | | ||||||
| * | | llvm-clang-analyzer: drop a few unnecessary assignments and other trivial fixes | Lennart Poettering | 2009-09-08 | 9 | -29/+30 | |
| | | |