Lennart Poettering
abd85af939
drop 0db reset functions since they are not necessary anymore
2008-08-13 13:59:29 +02:00
Lennart Poettering
8a10eba744
extend hardware dB scale in software to full range if necessary, instead of reverting back to software-only volume control
2008-08-13 13:59:06 +02:00
Lennart Poettering
3ec4a5db99
rework volume/mute APIs: split out pa_xx_set_soft_volume() and add force_refresh argument to read functions
2008-08-13 13:55:58 +02:00
Lennart Poettering
29daef7a26
add new function pa_alsa_volume_divide()
2008-08-13 13:54:17 +02:00
Lennart Poettering
8ab85fdf9e
reword some log messages
2008-08-13 13:53:31 +02:00
Lennart Poettering
e4adcf7071
add new API function pa_cvolume_max()
2008-08-13 13:52:20 +02:00
Lennart Poettering
a176f68e0a
reset lock_fd_mutex after destruction
2008-08-13 13:51:43 +02:00
Lennart Poettering
3c88af711e
fix protocol destruction
2008-08-13 13:51:13 +02:00
Lennart Poettering
7c5a95950e
initialize IP ACLs properly
2008-08-11 19:46:28 +02:00
Lennart Poettering
8ca254c490
fix two uninitialized memory accesses
2008-08-11 19:46:11 +02:00
Lennart Poettering
c4dff4d416
otpimize mixing code a bit by moving a few checks out of the inner loops
2008-08-11 18:34:38 +02:00
Lennart Poettering
5b2a83733d
optimize volume changing a bit by only using a single counter for the inner loops instead of two
2008-08-11 15:19:52 +02:00
Lennart Poettering
b604290803
adhere to struct gcc aliasing rules
2008-08-11 15:17:30 +02:00
Lennart Poettering
b21840407a
fix bad memory access
2008-08-09 17:04:41 +02:00
Lennart Poettering
72f520f93c
make gcc shut up
2008-08-09 17:04:27 +02:00
Lennart Poettering
afbfd5d937
adhere to C strict aliasing rules
2008-08-09 17:03:43 +02:00
Lennart Poettering
432b4e5f7d
don't use PA_GCC_UNUSED anymore
2008-08-09 16:20:29 +02:00
Lennart Poettering
9996213c41
free regex_t after use
2008-08-09 16:12:50 +02:00
Lennart Poettering
15cebbaceb
rework autospawning code to survive multiple pa_contexts in a single process
2008-08-09 03:49:42 +02:00
Lennart Poettering
b4a566918c
print reason when we fail to kill a running daemon
2008-08-09 03:47:59 +02:00
Lennart Poettering
ee4c350de7
set errno properly in all functions from pid.c
2008-08-09 03:47:18 +02:00
Lennart Poettering
d8119afeef
set errno properly in all functions from core-util.c
2008-08-09 03:46:46 +02:00
Lennart Poettering
9cf1a4e5c4
add locale support to pa_parse_boolean()
2008-08-09 03:46:23 +02:00
Lennart Poettering
c4d32ec804
set errno properly in all cases
2008-08-09 03:44:46 +02:00
Lennart Poettering
6df029a1b1
make sure we don't crash if pa_thread_join() is called more than once on the same pa_thread object
2008-08-08 22:31:24 +02:00
Diego 'Flameeyes' Pettenò
016fcd92d4
Reduce rules for man pages generation to pattern rules.
...
Instead of having to duplicat ethe same code all over for all the man
pages, simplify it and reduce it to generic pattern rules.x
2008-08-08 15:12:54 +02:00
Diego 'Flameeyes' Pettenò
89f492a7df
Replace some manual build tests with AC_CACHE_CHECK and AC_COMPILE_IFELSE.
...
Instead of compiling the build tests manually, use autoconf
facilities, so that the results are cached between runs. Also avoid
linking when a simple compile test is enough.
2008-08-08 15:09:38 +02:00
Diego 'Flameeyes' Pettenò
daf3e8b97d
Create a new macro for checking compiler support for TLS.
...
Create a new macro that can be shared between projects to check for
__thread support by the compiler. This macro might come useful for
xine-lib too so I want to keep it separate for easier importing it
over.
Name the defined macro SUPPORT_TLS___THREAD to follow the same style
as the checks from attributes.m4.
2008-08-08 15:09:38 +02:00
Diego 'Flameeyes' Pettenò
81969a73a4
Replace the CFLAGS-checking code with a common macro from xine-lib.
...
Instead of writing custom code to check for cflags checking, import a
copy of attributes.m4 from xine-lib's repository and use the
CC_CHECK_CFLAGS macro.
The advantage lies not only in being able to reduce the custom code in
configure.ac, but also in the fact that the CC_CHECK_CFLAGS macro
caches the results, making ./configure -C quite faster on second run.
Check for the CFLAGS for any compiler and not just GCC, if the
compiler does support the flag it is better to u se it anyway,
otherwise it will be skipped.
2008-08-08 15:09:37 +02:00
Diego 'Flameeyes' Pettenò
a6e4507a4b
Use AC_PROG_CC_C99 to discover C99-compliant compiler.
...
Instead of just checking if the compiler supports -std=c99 option,
make use of the autoconf macro for discovering C99. This way other
non-GCC compiler could be used in C99 mode too.
2008-08-08 15:09:32 +02:00
Diego 'Flameeyes' Pettenò
f46ae106a5
Create an m4 directory for common macros and use it.
...
Split acinclude.m4 in multiple macro files.
Let it be known to autoconf and aclocal to use the m4 directory.
Ignore macro files copied or linked by libtool and intltool.
2008-08-08 15:09:32 +02:00
Diego 'Flameeyes' Pettenò
66512f3fd6
Remove gettext macros from configure.ac, intltool is used.
...
When using intltool there is no need to _also_ use gettext, so remove
gettext macros so that autoreconf does not copy them over.
2008-08-08 15:09:32 +02:00
Diego 'Flameeyes' Pettenò
07395ceea1
Bump autoconf requirement to 2.62 (latest released version).
2008-08-08 15:09:27 +02:00
Diego 'Flameeyes' Pettenò
29fca62c89
Fix man pages generation when building out of tree.
...
When referring to the xmltoman script srcdir should be requested, or
the build will fail when doing out of tree builds (and the script is
thus not in the build directory).
2008-08-08 13:18:16 +02:00
Diego 'Flameeyes' Pettenò
8a3d666da3
Fix building again libtool/ltdl 2.2.4.
...
On changeset f1d2bf8408 support for
libtool 2.2 was broken as libtool_set_error was not defined anymore on
that version. Fix this by also putting under #ifdef the calls to that
function.
2008-08-08 12:39:04 +02:00
Lennart Poettering
40ff5fa06f
add compatibility with older PA socket paths
2008-08-07 02:39:58 +02:00
Lennart Poettering
75b28e97fa
remove some leftover debug string
2008-08-07 02:29:44 +02:00
Lennart Poettering
ecb2bc4f04
Modify pa_state_path() to take an additional argument for prepending the machine id to the file name.
2008-08-07 02:28:47 +02:00
Lennart Poettering
bd05b36a1e
Rework state/runtime directory logic
...
The runtime directory is now guaranteed to be in /tmp which will hopefully
provide support for POSIX file locking and UNIX sockets.
The state directory stays in $HOME.
2008-08-07 02:25:48 +02:00
Lennart Poettering
4e6fb67e9f
don't spam to stderr in API functions
2008-08-07 02:24:19 +02:00
Lennart Poettering
0075649f13
print machine id during startup
2008-08-07 02:23:45 +02:00
Lennart Poettering
73e2577ca6
add new function pa_machine_id()
2008-08-07 02:22:57 +02:00
Lennart Poettering
b84f738e50
translate error strings
2008-08-07 01:57:23 +02:00
Lennart Poettering
b983c0bd14
include host name in default sink/default source file
2008-08-06 21:35:32 +02:00
Lennart Poettering
bb7f80d4d8
fix a few things in the translations
2008-08-06 20:27:03 +02:00
Lennart Poettering
4a440848b2
add basic german translation
2008-08-06 20:24:03 +02:00
Lennart Poettering
31bfd6a44d
fix channel position string
2008-08-06 20:16:37 +02:00
Lennart Poettering
ff6bb7acda
add a few configuration sanity checks for system mode
2008-08-06 19:56:15 +02:00
Lennart Poettering
a4762ab4b1
add disallow-exit to default configuration file
2008-08-06 19:55:50 +02:00
Lennart Poettering
756fac8d04
add new switch --disallow-exit
2008-08-06 19:39:12 +02:00