Commit graph

3240 commits

Author SHA1 Message Date
Lennart Poettering
a1da83b206 timeval: add UNLIKELY annotation 2009-09-18 04:14:38 +02:00
Lennart Poettering
05f6236a83 timeval: make pa_timeval_sub saturating 2009-09-18 04:14:38 +02:00
Lennart Poettering
fdec460661 core-rtclock: introduce pa_timespec_store() akin pa_timeval_store() 2009-09-18 04:14:37 +02:00
Lennart Poettering
f7d38965b3 timeval: introduce PA_USEC_MAX 2009-09-18 04:14:37 +02:00
Lennart Poettering
56f217f3f8 macro: introduce PA_INT_TYPE_MIN, PA_INT_TYPE_MAX, PA_INT_TYPE_SIGNED macros 2009-09-18 04:14:37 +02:00
Lennart Poettering
fb4a2a1bbb mainloop: sum up dispatched events in an unsigned to clarify range 2009-09-18 04:14:37 +02:00
Lennart Poettering
18d69c5d9d mainloop: use PA_LLIST_FOREACH macros where applicable 2009-09-18 04:14:37 +02:00
Lennart Poettering
b32f5994e9 mainloop: don't initialize fields we don't have to 2009-09-18 04:14:36 +02:00
Lennart Poettering
a049909a70 mainloop: calculate in pa_usec_t everywhere 2009-09-18 04:14:36 +02:00
Lennart Poettering
a43118b730 mainloop: properly convert time to wallclock time when handing it to the user 2009-09-18 04:14:36 +02:00
Lennart Poettering
a37e48a819 alsa: fix Surround mixer element name
s/Sourround/Surround/

Spotted by Colin Guthrie
2009-09-18 04:14:36 +02:00
Colin Guthrie
56b6e18030 rtp: Factor out direct io writing and use ioline instead.
This is how things should have worked orinally, but I obviously misunderstood things a bit.
This seems to prevent the random hangups that were happening previously :)
2009-09-18 00:22:01 +01:00
Colin Guthrie
94d20a59fa raop: Use pa_module_unload_request_by_index as per module-zeroconf-discover 2009-09-18 00:22:01 +01:00
Lennart Poettering
7b76ea3784 core-util: unify how we determine the temporary directory 2009-09-17 21:06:54 +02:00
Lennart Poettering
2d9168ceb3 Improve TMPDIR handling
Patch from 'jnelson',

http://pulseaudio.org/ticket/653
2009-09-17 20:58:36 +02:00
Lennart Poettering
3de5c49e42 cli: properly destruct cli object 2009-09-17 04:04:54 +02:00
Lennart Poettering
b4d4f2b856 cli: don't accidentaly set O_NDELAY on stderr
Loading module-cli could have the effect of setting O_NDELAY on stderr,
because it was just a dup'ed fd of stdin which module-cli sets O_NDELAY
for and which flag is shared between all dupes.

Instead of using stdin/stdout directly we now open a new file descriptor
for the controlling terminal, which is equally useful as stdin/stdout
but gives a new file that does not share O_NDELAY with stdin/stdout.

This solves a problem where when running pulseaudio -C resulted in
log output being truncated since stdio does not really handle O_NDELAY
that well in on its fds.
2009-09-17 03:59:25 +02:00
Lennart Poettering
94f28b9d4b proplist: introduce PA_PROP_WINDOW_DESKTOP property 2009-09-17 02:22:41 +02:00
Lennart Poettering
add4cbf2f3 position-event-sounds: don't warn that loud about vpos/hpos out of range 2009-09-17 02:04:59 +02:00
Lennart Poettering
cdbeac6b69 libpulse: as a special exception, don't require a non-NULL context in pa_context_errno 2009-09-17 01:37:23 +02:00
Lennart Poettering
231c17be03 svolume_mmx: disable test accidentaly left on 2009-09-17 01:34:02 +02:00
Lennart Poettering
4e6dce593f Merge remote branch 'wtay/optimize' 2009-09-17 01:32:03 +02:00
Vladimir Kokarev
e63c867f87 alsa: correct assumptions about channels an element lacks
If an element does not control some channels assume they are 0dB in
comparison to the other elements, i.e. do not influence the volume at
all. Previously we were assuming they were as high as the highest of the
channels we do control.
2009-09-17 01:26:18 +02:00
Lennart Poettering
1a6974a1e2 pacat: use fully automatic buffer sizes if possible 2009-09-17 01:22:48 +02:00
Lennart Poettering
e2899f8bf3 memblock: make it easy to disable mempool usage with $PULSE_MEMPOOL_DISABLE 2009-09-17 01:21:56 +02:00
Lennart Poettering
6b8fdc4169 CANCELLED vs. CANCELED
Define CANCELLED as alias for CANCELED
2009-09-17 01:19:55 +02:00
Wim Taymans
3d5a572694 svolume_mmx: optimize some more
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.
2009-09-16 17:14:12 +02:00
Wim Taymans
d397a82e14 svolume_sse: fix comment 2009-09-16 17:14:11 +02:00
Lennart Poettering
12f211105e gccmacro: enable weakrefs only on ELF 2009-09-15 04:31:54 +02:00
Lennart Poettering
180ef1eebd position-event-sounds: apply volume factor after, not before resampling 2009-09-11 03:27:38 +02:00
Lennart Poettering
a015d56fac core: add an additional volume factor that is applied after resampling took place 2009-09-11 03:26:25 +02:00
Lennart Poettering
6fa2445e11 position-event-sounds: honour window position if set, position both vertically and horizontally 2009-09-11 02:32:21 +02:00
Lennart Poettering
5919337433 proplist: define properties for storing window position 2009-09-11 02:16:17 +02:00
Lennart Poettering
42b795b408 doxygen: don't confuse doxygen with spurious .. 2009-09-11 01:49:55 +02:00
Lennart Poettering
4e3f7d5577 doxygen: add rtclock.h to documentation 2009-09-11 01:49:39 +02:00
Lennart Poettering
297f318206 doxygen: drop references to pacat.c and paplay.c as examples since tehy are not useful as such and in the case of paplay not even existant anymore 2009-09-11 01:49:16 +02:00
Lennart Poettering
80b4457476 alsa: properly report suspension error codes 2009-09-11 01:22:10 +02:00
Lennart Poettering
bb36bb4bbe alsa: properly convert sample buffer sizes 2009-09-11 01:21:46 +02:00
Lennart Poettering
54609675e5 libpulse: add new error code PA_ERR_BUSY 2009-09-11 01:20:45 +02:00
Lennart Poettering
12c7460e40 libpulse: don't support pa_context_get_card_info_list() on servers that cannot handle it 2009-09-10 02:16:00 +02:00
Lennart Poettering
807f2a9923 native: send PA_COMMAND_PLAYBACK_BUFFER_ATTR_CHANGED messages only to clients that understand it 2009-09-10 02:15:12 +02:00
Lennart Poettering
d5f43bd4c6 alsa: disable tsched for software devices before we configure the buffer metrics so that we don't accidently set a buffer size that is suitable for tsched where we don't use tsched 2009-09-09 23:57:49 +02:00
Lennart Poettering
8364b959b4 alsa: when probing for profiles configure buffer/period sizes since some broken drivers apparently need that 2009-09-09 23:56:51 +02:00
Lennart Poettering
84ade2140e alsa: pass SND_PCM_NONBLOCK when opening device during unsuspend, the same way we do it for initial opening 2009-09-09 04:44:51 +02:00
Lennart Poettering
557c429510 alsa: rework buffer/period configuration
- As discussed on alsa-devel it's probably better to initialize the
  buffer size first, followed by the period size. If that fails try the
  other way round. If that fails try to configure only buffer size. If
  that fails try to configure only period size. Finally, try to
  configure neither.

- Don't require integral periods anymore.

Both of these changes should help improving compatibility with various
weirder sound devices, such as TV cards.
2009-09-09 04:28:52 +02:00
Lennart Poettering
71e066c873 simd: be more precise which SIMD optimizations we activate 2009-09-09 04:28:22 +02:00
Lennart Poettering
1f0904b800 sample-util: add pa_convert_size() call for converting sizes between two sample specs 2009-09-09 04:27:16 +02:00
Lennart Poettering
c2f1994968 udev: ratelimit device initializations 2009-09-09 02:41:58 +02:00
Lennart Poettering
12df6860ad ratelimit: allow non-static ratelimit structs 2009-09-09 02:41:34 +02:00
Lennart Poettering
7cc100d9e1 padsp: properly return return values (llvm-clang-analyzer) 2009-09-08 23:54:53 +02:00