Lennart Poettering [Sat, 12 Aug 2006 16:33:31 +0000 (16:33 +0000)]
name the sink/source after the device file, just like we already do for the non-mmaped driver
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1224
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 16:26:59 +0000 (16:26 +0000)]
generate default sink/source names from the device files they belong to
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1223
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 16:02:52 +0000 (16:02 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1222
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 16:02:26 +0000 (16:02 +0000)]
handle hot-remeving of OSS devices properly
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1221
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 16:01:40 +0000 (16:01 +0000)]
print the device capabilities after opening the device
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1220
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 15:09:49 +0000 (15:09 +0000)]
when the requested sample format is not available for OSS devices, print a nice warning and take what we can get instead
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1219
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 15:08:53 +0000 (15:08 +0000)]
there's no need to queue subscription events if noone is listening, hence don't do it!
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1218
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 13:18:34 +0000 (13:18 +0000)]
* only load an OSS driver for the first device of a sound card, similar to what is done for ALSA.
* fix a mem leak
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1217
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 13:17:33 +0000 (13:17 +0000)]
fix a segfault in module-oss
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1216
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 12:07:22 +0000 (12:07 +0000)]
fix pa_gettimeofday() return value testing
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1215
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 12:03:30 +0000 (12:03 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1214
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 02:20:05 +0000 (02:20 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1213
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 02:19:36 +0000 (02:19 +0000)]
clean up event generation a little: suppress unnecessary events and generate new ones on owner change
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1212
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 02:18:24 +0000 (02:18 +0000)]
rework subscription code: try to drop redundant queued events
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1211
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 02:16:47 +0000 (02:16 +0000)]
fix a compiler warning
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1210
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 02:16:12 +0000 (02:16 +0000)]
add new macro PA_LLIST_INSERT_AFTER
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1209
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Shahms E. King [Sat, 12 Aug 2006 01:17:19 +0000 (01:17 +0000)]
increase module argument buffer size to prevent truncating names
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1208
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 00:26:17 +0000 (00:26 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1207
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 00:25:52 +0000 (00:25 +0000)]
allow setting the null sink description by a module parameter
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1206
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 23:58:55 +0000 (23:58 +0000)]
don't set the sink/source descriptions manually, use the new functions pa_{sink,source}_set_description() instead
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1205
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 23:31:59 +0000 (23:31 +0000)]
comment which values in pa_{sink,source,sink_input,source_output} structures may be NULL
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1204
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 17:53:34 +0000 (17:53 +0000)]
* introduce new functions pa_sink_set_description() and pa_source_set_description() for changing the description of a sink/source
* allow sinks without monitor sources attached
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1203
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 17:15:41 +0000 (17:15 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1202
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 17:14:35 +0000 (17:14 +0000)]
shorten sink/source device descriptions a little
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1201
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 17:12:54 +0000 (17:12 +0000)]
use the HAL UDI for naming input/output devices
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1200
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 16:58:21 +0000 (16:58 +0000)]
do not export name validity checking routes and apply them only to sink/source names, not sample names
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1199
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 16:56:47 +0000 (16:56 +0000)]
fix bad memory access and a leak when detructing ALSA fd lists
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1198
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 16:38:51 +0000 (16:38 +0000)]
rework name register a litle to only allow "valid" names.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1197
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 16:38:05 +0000 (16:38 +0000)]
Build HAL support only when either OSS or ALSA is available
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1196
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 16:29:46 +0000 (16:29 +0000)]
remove OSS specific code from module-hal-detect if HAVE_OSS is not set. Same for ALSA
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1195
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 15:08:09 +0000 (15:08 +0000)]
ALSA: handle write()/read() errors properly by unloading the driver module. This should fix problems when removing USB audio device while pulseaudio is running.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1194
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 15:06:03 +0000 (15:06 +0000)]
change order of the ALSA event dispatch code to make sure that the code survives if the event dispatcher frees the ALSA client
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1193
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 15:05:02 +0000 (15:05 +0000)]
use the copied udi string as hash key for the device table, because the temporary one is freed when the function exits
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1192
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Shahms E. King [Tue, 8 Aug 2006 19:26:06 +0000 (19:26 +0000)]
add HAL support for OSS devices and capability changes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1191
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Shahms E. King [Mon, 7 Aug 2006 20:29:31 +0000 (20:29 +0000)]
clean up hal patch to use pa_xnew and timeval compatibility wrappers
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1190
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 7 Aug 2006 16:50:15 +0000 (16:50 +0000)]
try to reduce volume updates in the ALSA sinks/sources: only touch the shadowed hw volme if necessary
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1189
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 6 Aug 2006 19:14:07 +0000 (19:14 +0000)]
* add SVN $Id$ tags
* add a const
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1188
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 6 Aug 2006 16:16:50 +0000 (16:16 +0000)]
merge HAL support from Shams E. King
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1187
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 3 Aug 2006 22:34:22 +0000 (22:34 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1186
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 3 Aug 2006 22:33:54 +0000 (22:33 +0000)]
implement "pactl move-source-output"
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1185
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 3 Aug 2006 22:33:11 +0000 (22:33 +0000)]
implement pa_context_move_source_output_by_{name,index}()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1184
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 3 Aug 2006 22:32:23 +0000 (22:32 +0000)]
wrap pa_source_output_move_to() in the native protocol
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1183
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 3 Aug 2006 22:31:35 +0000 (22:31 +0000)]
add new CLI command move-source-output as wrapper around pa_source_output_move_to()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1182
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 3 Aug 2006 22:30:45 +0000 (22:30 +0000)]
Implement pa_source_input_move_to() for moving record streams between sources
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1181
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 3 Aug 2006 22:29:55 +0000 (22:29 +0000)]
- don't call pa_sink_notify in pa_sink_input_new() because the virtual methods are not yet initialized at this time
- some minor cleanups
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1180
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 1 Aug 2006 21:04:43 +0000 (21:04 +0000)]
bump API and protocol version. Return PA_ERR_NOTSUPPORTED if pa_context_move_sink_input_by_*()is called for servers that don't support it
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1179
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 31 Jul 2006 21:55:42 +0000 (21:55 +0000)]
add new "move-sink-input" command to pactl
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1178
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 31 Jul 2006 21:55:09 +0000 (21:55 +0000)]
wrap PA_COMMAND_MOVE_SINK_INPUT for libpulse
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1177
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 31 Jul 2006 21:54:46 +0000 (21:54 +0000)]
add new native protocol function for moving sink inputs between sinks
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1176
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 31 Jul 2006 21:54:20 +0000 (21:54 +0000)]
add new commands opcode for moving sink inputs and source outputs
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1175
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 31 Jul 2006 21:53:48 +0000 (21:53 +0000)]
deal properly with recursive module unloading
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1174
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 31 Jul 2006 21:53:21 +0000 (21:53 +0000)]
fix bad memory access if a non-existing entry shall be removed from a pa_idxset by index
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1173
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 29 Jul 2006 17:42:25 +0000 (17:42 +0000)]
fix module-gconf initialization
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1172
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 29 Jul 2006 17:20:08 +0000 (17:20 +0000)]
don't hit an assetr if there are operations outstanding when the pa_context is destroyed
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1171
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 29 Jul 2006 15:34:36 +0000 (15:34 +0000)]
fix two typos (pierre, have you been sleeping? next time please the comments wrong but the code right, not the other way round! ;-))
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1170
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 29 Jul 2006 15:07:15 +0000 (15:07 +0000)]
add new CLI function "move-sink-input" as wrapper around pa_sink_input_move_to()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1169
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 29 Jul 2006 15:06:49 +0000 (15:06 +0000)]
* implement "hot" moving of playback streams between sinks (pa_sink_input_move_to()).
* optimize the adjusting of the volume in pa_sink_input_peek() a little
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1168
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 29 Jul 2006 15:04:17 +0000 (15:04 +0000)]
free the memblockq if we decide not to play it
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1167
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 29 Jul 2006 15:03:26 +0000 (15:03 +0000)]
if the memblockq is empty, return -1 in all cases
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1166
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 29 Jul 2006 15:02:53 +0000 (15:02 +0000)]
fix calculation of pa_usec_to_bytes, to make sure that it never returns fractions of a frame size
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1165
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 29 Jul 2006 15:02:24 +0000 (15:02 +0000)]
handle EOF correctly if it is read before the stream was created
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1164
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 28 Jul 2006 23:29:37 +0000 (23:29 +0000)]
for the playing field of pa_timing_info use pa_sink_input::state == PA_SINK_INPUT_RUNNING. This means that this variable will now refer to the current state and not to the expected future state, which is probably more what clients expect.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1163
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 28 Jul 2006 23:27:16 +0000 (23:27 +0000)]
fold the seperate variable pa_sink_input::playing into pa_sink_input::state as state PA_SINK_INPUT_DRAINED. The following mappings hold:
old PA_SINK_RUNNING + playing set = new PA_SINK_RUNNING
old PA_SINK_RUNNING + playing not set = new PA_SINK_DRAINED
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1162
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 28 Jul 2006 22:52:28 +0000 (22:52 +0000)]
introduce pa_play_memblockq() which creates a playback stream and passes the data from the memblockq to it. after that is done, frees the memblockq
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1161
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 27 Jul 2006 18:40:01 +0000 (18:40 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1160
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 27 Jul 2006 18:35:17 +0000 (18:35 +0000)]
load module-gconf in default install
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1159
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 27 Jul 2006 18:02:59 +0000 (18:02 +0000)]
introduce three virtual sink/source names: @DEFAULT_SINK@, @DEFAULT_SOURCE@, @DEFAULT_MONITOR@. Especially the latter is useful for connecting to the monitor source of the default sink.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1158
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 27 Jul 2006 16:51:20 +0000 (16:51 +0000)]
if possible do not unload already loaded modules when the gconf settings change. instead try to reuse already loaded modules as much as possible
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1157
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 27 Jul 2006 16:50:26 +0000 (16:50 +0000)]
because gconf doesn't provide real transactions we emulate our own with a "locked" gconf key
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1156
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 27 Jul 2006 16:49:44 +0000 (16:49 +0000)]
remove superfluous code
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1155
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 26 Jul 2006 22:39:56 +0000 (22:39 +0000)]
remove two superfluous lines
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1154
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 26 Jul 2006 22:39:06 +0000 (22:39 +0000)]
mainloop fixes: when disabling time events when dispatching them, make sure to adjust the cache time event and enabled time event counters
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1153
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 26 Jul 2006 18:28:31 +0000 (18:28 +0000)]
add some protection that the gconf helper process will be killed when the daemon process dies. make sure the gconf helper process doesn't keep open file descriptors belonging to the daemon; if gconf helper path
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1152
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 26 Jul 2006 17:46:51 +0000 (17:46 +0000)]
add missing configure.ac checks for module-gconf
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1151
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 26 Jul 2006 17:36:14 +0000 (17:36 +0000)]
add new module "module-gconf" which reads configuration information from gconf. this will be used in my upcoming paconf module
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1150
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 25 Jul 2006 20:51:15 +0000 (20:51 +0000)]
add new command line option --no-cpu-limit. This is useful when running PulseAudio in valgrind's massif or callgrind tools
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1149
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 25 Jul 2006 20:39:34 +0000 (20:39 +0000)]
Results of profiling PulseAudio with valgrind's callgrind module: rework the default event loop implementation to use PA_LLIST_xxx instead of pa_idxset; don't generate weakeup events if we aren't in STATE_POLLING; minimize dispatching of io events; cache next time event instead of traversing the list of time events on every event loop iteration; other optimizations
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1148
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 25 Jul 2006 20:10:47 +0000 (20:10 +0000)]
split a few asserts
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1147
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 25 Jul 2006 20:10:30 +0000 (20:10 +0000)]
split a few assert()s
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1146
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 25 Jul 2006 20:09:22 +0000 (20:09 +0000)]
add a few more g_assert()s and change all assert()s to g_assert()s
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1145
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 24 Jul 2006 20:03:27 +0000 (20:03 +0000)]
add autogen.sh for jhbuild (for you, elmarco!)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1144
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 24 Jul 2006 17:48:33 +0000 (17:48 +0000)]
bump version and sonames
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1142
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 23 Jul 2006 22:36:08 +0000 (22:36 +0000)]
add massif target to Makefile
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1141
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 23 Jul 2006 22:35:30 +0000 (22:35 +0000)]
as a result of memory profiling with valgrind/massif: decrease default hash table size from 1024 to 127. the hashtables are sparsely filled most of the time, so there is no point in allocating to much memory by default.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1140
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 23 Jul 2006 19:23:12 +0000 (19:23 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1139
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 22 Jul 2006 00:54:23 +0000 (00:54 +0000)]
fix horribly broken glib timeout event handling
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1138
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Fri, 21 Jul 2006 21:19:11 +0000 (21:19 +0000)]
Use proper @libdir@ in pc.in files to handle x86_64 machines.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1137
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 21 Jul 2006 19:59:52 +0000 (19:59 +0000)]
raise the default value for RLIMIT_NOFILE to 200 since 25 is apparently too small if every single GNOME apps thinks it needs to create its own server connection!
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1136
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Thu, 20 Jul 2006 23:21:57 +0000 (23:21 +0000)]
Get ACL:s to work on Win32.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1134
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 23:12:18 +0000 (23:12 +0000)]
remove access group setting from default client.conf
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1133
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 23:04:59 +0000 (23:04 +0000)]
fix a few @@ replacments
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1132
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 22:58:37 +0000 (22:58 +0000)]
even more FreeBSD portability (thanks Flameeyes, again!)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1131
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 22:46:41 +0000 (22:46 +0000)]
add missing #ifdef HAVE_CREDS (thanks, Flameeyes)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1130
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 22:44:38 +0000 (22:44 +0000)]
some more FreeBSD compat from Flameeyes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1129
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 21:48:49 +0000 (21:48 +0000)]
bump release and sonames
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1128
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 21:28:44 +0000 (21:28 +0000)]
remove configurable client access group, since can never work on Linux anway, since SCM_CREDENTAILS doesn't allow sending supplementary GIDs
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1127
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 18:43:38 +0000 (18:43 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1126
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 18:43:20 +0000 (18:43 +0000)]
implement "auth-ip-acl=" in the native and esound protocols
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1125
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 16:56:06 +0000 (16:56 +0000)]
actually ship src/pulsecore/creds.h in the tarballs
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1124
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 16:48:26 +0000 (16:48 +0000)]
add IP address ACL subsystem
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1123
fefdeb5f-60dc-0310-8127-
8f9354f1896f