Lennart Poettering [Thu, 17 Aug 2006 20:02:46 +0000 (20:02 +0000)]
modify pa_bytes_snprint() to return the string we just wrote to. This should be binary compat with older versions which returned void
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1259
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 17 Aug 2006 20:01:04 +0000 (20:01 +0000)]
make PA_LLIST_HEAD_INIT thread safe
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1258
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 15 Aug 2006 18:15:00 +0000 (18:15 +0000)]
use the description field of sinks/sources to name the zeroconf services, instead of the logical name
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1257
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Mon, 14 Aug 2006 08:38:07 +0000 (08:38 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1256
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 20:45:54 +0000 (20:45 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1255
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 20:45:19 +0000 (20:45 +0000)]
extend module-rescue-streams to move also source outputs when a source dies
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1254
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 20:44:32 +0000 (20:44 +0000)]
fix a segfault when registering a service with avahi fails
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1253
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 20:44:00 +0000 (20:44 +0000)]
create rtp source output on correct source
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1252
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 20:43:22 +0000 (20:43 +0000)]
minor optimization
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1251
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 19:55:17 +0000 (19:55 +0000)]
implement hook_source_ouput_new. For this I modified the pa_source_output_new constructor to take a struct similar to what I already did for pa_sink_input_new()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1250
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 19:53:35 +0000 (19:53 +0000)]
split a validity check into two
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1249
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 19:53:18 +0000 (19:53 +0000)]
implement hook_source_disconnect
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1248
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 19:52:43 +0000 (19:52 +0000)]
define new hooks: hook_source_output_new, hook_source_disconnect
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1247
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 17:39:19 +0000 (17:39 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1246
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 17:35:46 +0000 (17:35 +0000)]
Load module-rescue-streams by default
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1245
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 17:34:36 +0000 (17:34 +0000)]
implement new module "module-rescue-streams" which moves sink inputs away when their sink is removed.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1244
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 17:33:32 +0000 (17:33 +0000)]
properly implement a pa_sink_disconnect() hook
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1243
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 17:32:35 +0000 (17:32 +0000)]
Clean up module description a little
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1242
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 17:31:58 +0000 (17:31 +0000)]
ignore if we recieved a memory block for an invalid stream, since this might happen unwillingly due to the asychnronous nature of the protocol
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1241
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 17:30:51 +0000 (17:30 +0000)]
remove pa_sink_input::variable_rate field since it has been folded into pa_sink_input::flags
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1240
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 16:22:20 +0000 (16:22 +0000)]
hide hook-list-test
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1239
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 16:21:20 +0000 (16:21 +0000)]
modify module-volume-restore to change the initial volume of a sink input from a hook instead of an asyncronous subscription event.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1238
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 16:19:56 +0000 (16:19 +0000)]
allow hooking into the process of creating playback streams. To implement this I modified the pa_sink_input_new() signature to take a pa_sink_input_new_data structure instead of direct arguments.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1237
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 16:14:06 +0000 (16:14 +0000)]
fix bad printf()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1236
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 16:13:36 +0000 (16:13 +0000)]
rework hook list stuff once again: change the callback prototype to recieve three data pointers: one to the data for the hook, once for the slot and once for the call
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1235
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 13 Aug 2006 01:43:34 +0000 (01:43 +0000)]
rework hook list stuff again, and replace macros with real functins. We loose type safety but things are much cleaner now
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1234
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 23:55:48 +0000 (23:55 +0000)]
update hook list test
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1233
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 23:55:22 +0000 (23:55 +0000)]
reall add type safe hook list
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1232
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 23:35:44 +0000 (23:35 +0000)]
implement typeafe hook chain
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1231
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 17:59:10 +0000 (17:59 +0000)]
extend maximum sink/source name length, because HAL UDIs can get ridiculously long
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1230
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 17:07:49 +0000 (17:07 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1229
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 17:06:39 +0000 (17:06 +0000)]
test if sink->monitor_source is set before making use of it
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1228
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 17:06:05 +0000 (17:06 +0000)]
make use of pa_sink_used_by()/pa_source_used_by() wherever applicable
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1227
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 16:50:58 +0000 (16:50 +0000)]
add pa_sink_used_by()/pa_source_used_by()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1226
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 12 Aug 2006 16:40:59 +0000 (16:40 +0000)]
categorize todo file
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1225
fefdeb5f-60dc-0310-8127-
8f9354f1896f
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