Lennart Poettering [Sat, 2 Sep 2006 12:28:40 +0000 (12:28 +0000)]
fix esdcompat for non-gnu systems
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1361
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 2 Sep 2006 12:28:17 +0000 (12:28 +0000)]
make esdcompat executable
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1360
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 2 Sep 2006 12:03:18 +0000 (12:03 +0000)]
Merge FreeBSD compatibility patch (from Flameeyes)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1359
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Fri, 1 Sep 2006 19:06:44 +0000 (19:06 +0000)]
Fix call to pa_mutex_new().
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1358
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Fri, 1 Sep 2006 18:39:55 +0000 (18:39 +0000)]
Add pthread_once() equivalent support.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1357
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Fri, 1 Sep 2006 18:16:55 +0000 (18:16 +0000)]
Thread implementation for Win32.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1356
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 1 Sep 2006 00:24:32 +0000 (00:24 +0000)]
fix a race condition with stream connection vs. latency measuremtn (found by theBear)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1355
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Thu, 31 Aug 2006 16:39:53 +0000 (16:39 +0000)]
Make sure libatomic_ops.a isn't included in win32 builds as libtool doesn't
like static libs in dlls. Everything is in the headers anyway, so we do not
need it.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1354
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Thu, 31 Aug 2006 16:13:07 +0000 (16:13 +0000)]
Also wrap yield functionality so that it can be platform independent.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1353
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 31 Aug 2006 15:31:33 +0000 (15:31 +0000)]
work around bug in firefox which apparently misuses access() as NULL pointer test. Original patch by "alon". (Closes #27)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1352
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 31 Aug 2006 15:20:43 +0000 (15:20 +0000)]
define AO_REQUIRE_CAS in the Makefile instead of each source file, effectively reversing r1348
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1351
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 31 Aug 2006 15:17:40 +0000 (15:17 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1350
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 30 Aug 2006 17:12:35 +0000 (17:12 +0000)]
fix handling of "running" variable
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1349
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Wed, 30 Aug 2006 17:01:10 +0000 (17:01 +0000)]
Add AO_REQUIRE_CAS as we do.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1348
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Wed, 30 Aug 2006 16:55:37 +0000 (16:55 +0000)]
Make sure the libatomic_ops lib is included.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1347
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Wed, 30 Aug 2006 14:44:15 +0000 (14:44 +0000)]
Remove check for libatomic_ops library as some systems have no (zero, nada)
symbols in it.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1346
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Wed, 30 Aug 2006 13:02:29 +0000 (13:02 +0000)]
We need to have a callback when changing volume or we might deadlock.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1345
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 29 Aug 2006 19:51:14 +0000 (19:51 +0000)]
add a threading primitive API
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1344
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 29 Aug 2006 02:01:39 +0000 (02:01 +0000)]
make pa_mempool_stat thread-safe/lock-free
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1343
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 29 Aug 2006 01:16:47 +0000 (01:16 +0000)]
modify memory block reference counting to use the new reference counting API
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1342
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 29 Aug 2006 01:15:51 +0000 (01:15 +0000)]
add lock-free reference counting macros, based on libatomic-ops
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1341
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 29 Aug 2006 01:15:09 +0000 (01:15 +0000)]
add libatomic-ops to hard dependencies
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1340
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 28 Aug 2006 19:16:00 +0000 (19:16 +0000)]
fix an misdesigned assert()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1339
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Mon, 28 Aug 2006 06:25:41 +0000 (06:25 +0000)]
Add PulseAudio logo to tree.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1338
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Mon, 28 Aug 2006 05:15:46 +0000 (05:15 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1337
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 27 Aug 2006 13:04:56 +0000 (13:04 +0000)]
increase operation timeout
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1336
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 26 Aug 2006 19:22:14 +0000 (19:22 +0000)]
bump version and sonames
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1334
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 26 Aug 2006 19:00:22 +0000 (19:00 +0000)]
fix module-combine when used on top of a tunnel sink
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1333
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 25 Aug 2006 22:52:59 +0000 (22:52 +0000)]
update module-tunnel to latest protocol
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1332
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 25 Aug 2006 12:12:13 +0000 (12:12 +0000)]
activate HAL in the default config
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1331
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Thu, 24 Aug 2006 08:57:35 +0000 (08:57 +0000)]
Add missing header.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1330
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 23 Aug 2006 22:28:53 +0000 (22:28 +0000)]
fix handling of "mtu" module argument (patch by "theBear")
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1329
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Wed, 23 Aug 2006 07:58:07 +0000 (07:58 +0000)]
fix typo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1328
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Wed, 23 Aug 2006 07:57:43 +0000 (07:57 +0000)]
Make the recording a bit more chunky so that we can fit in the pool and have
efficient blocks.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1327
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Tue, 22 Aug 2006 16:25:47 +0000 (16:25 +0000)]
Remove silence generation in solaris module.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1326
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Tue, 22 Aug 2006 16:15:47 +0000 (16:15 +0000)]
Remove silence generation in waveout module.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1325
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Tue, 22 Aug 2006 15:36:37 +0000 (15:36 +0000)]
Proceed with connect even when no cookie is loaded. Allows you to connect
to server which do not require a cookie under all circumstances.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1324
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Tue, 22 Aug 2006 15:24:11 +0000 (15:24 +0000)]
Fix memory leak in waveout module.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1323
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Tue, 22 Aug 2006 15:20:57 +0000 (15:20 +0000)]
Log when there is a problem opening the waveOut/waveIn device.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1322
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Tue, 22 Aug 2006 12:51:29 +0000 (12:51 +0000)]
Fall back to creating a "normal" memory pool if unable to get a shared one.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1321
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Tue, 22 Aug 2006 12:46:05 +0000 (12:46 +0000)]
Improve error messages a bit.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1320
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Tue, 22 Aug 2006 12:45:43 +0000 (12:45 +0000)]
Fix up portability of memory pool handling a bit.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1319
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 22 Aug 2006 12:29:41 +0000 (12:29 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1318
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 22 Aug 2006 12:04:55 +0000 (12:04 +0000)]
fix typo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1317
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Tue, 22 Aug 2006 11:41:14 +0000 (11:41 +0000)]
Fix detection of shared memory support and proper fallback.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1316
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Tue, 22 Aug 2006 11:39:19 +0000 (11:39 +0000)]
Fix typo.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1315
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Tue, 22 Aug 2006 11:38:46 +0000 (11:38 +0000)]
Add missing header.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1314
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Tue, 22 Aug 2006 11:37:53 +0000 (11:37 +0000)]
Fix call to pa_memblock_new().
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1313
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Tue, 22 Aug 2006 07:41:23 +0000 (07:41 +0000)]
Fix detection of page size for non-POSIX systems.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1312
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Tue, 22 Aug 2006 07:25:45 +0000 (07:25 +0000)]
Fix missing header for timeval helpers.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1311
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Tue, 22 Aug 2006 07:23:47 +0000 (07:23 +0000)]
Fix calls to pa_memblock_new().
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1310
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Tue, 22 Aug 2006 07:21:41 +0000 (07:21 +0000)]
Add header for pa_cstrerror().
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1309
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Tue, 22 Aug 2006 07:18:07 +0000 (07:18 +0000)]
Fix call to pa_pstream_send_tagstruct().
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1308
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Tue, 22 Aug 2006 07:12:50 +0000 (07:12 +0000)]
Add an ifdef for when we do not have creds.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1307
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 21 Aug 2006 22:37:09 +0000 (22:37 +0000)]
fix pactl output (sink drivers and names where switched)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1306
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 23:09:23 +0000 (23:09 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1305
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 23:08:50 +0000 (23:08 +0000)]
restore the sink/source for a client in addition to the playback volume. This changes the file format of the table file. To avoid parse errors ~/.pulse/volume.table has been renamed to ~/.pulse/volume-restore.table
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1304
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 23:06:45 +0000 (23:06 +0000)]
If a client leaves the sink/source for a stream unspecified by passing NULL as
sink/source name sink/source we should pass NULL to
pa_sink_input_new()/pa_source_output_new() as too. This allows
hooks to change the sink/source device only if it is left unspecified by the client
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1303
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 23:04:04 +0000 (23:04 +0000)]
fix a bad memory access
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1302
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 18:58:17 +0000 (18:58 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1301
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 18:57:33 +0000 (18:57 +0000)]
when transferring large memory chunks of a pa_pstream, split them up
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1300
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 18:28:04 +0000 (18:28 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1299
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 17:34:08 +0000 (17:34 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1298
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 17:30:30 +0000 (17:30 +0000)]
check for posix_memalign and friends
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1297
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 17:27:27 +0000 (17:27 +0000)]
if MAP_ANONYMOUS is not supported use posix_memalign if possible to allocate the memory pool
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1296
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 16:26:08 +0000 (16:26 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1295
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 16:25:41 +0000 (16:25 +0000)]
print per-type memory block statistics on "stat"
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1294
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 16:25:15 +0000 (16:25 +0000)]
generate per-type memory block statistics
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1293
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 02:24:59 +0000 (02:24 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1292
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 02:23:52 +0000 (02:23 +0000)]
rework the resample to allocate temporary memory with pa_memblock_new() instead of pa_xrealloc()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1291
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 02:23:11 +0000 (02:23 +0000)]
fix a memory leak
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1290
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 01:23:09 +0000 (01:23 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1289
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 01:21:22 +0000 (01:21 +0000)]
add --disable-shm command line option to the daemon
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1288
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 01:20:40 +0000 (01:20 +0000)]
add "disable-shm=" to default daemon configuration file
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1287
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 01:20:13 +0000 (01:20 +0000)]
add new "disable-shm" server config option
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1286
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 01:18:57 +0000 (01:18 +0000)]
add default "disable-shm" option to client.conf
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1285
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 01:18:30 +0000 (01:18 +0000)]
add new "disable-shm" option to client.conf
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1284
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 01:16:38 +0000 (01:16 +0000)]
allow importing of external shm data blocks unconditionally, even when local SHM support is disabled
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1283
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 01:15:48 +0000 (01:15 +0000)]
deal properly with pa_mempool_new() failing
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1282
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 01:15:22 +0000 (01:15 +0000)]
fix allocation of anonymous memory
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1281
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 19 Aug 2006 01:14:59 +0000 (01:14 +0000)]
fix a memory leak
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1280
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 18 Aug 2006 23:45:57 +0000 (23:45 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1279
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 18 Aug 2006 23:45:23 +0000 (23:45 +0000)]
enable SHM support on the client side only if both the client and the server run as the same user and the server supports it
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1278
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 18 Aug 2006 23:44:35 +0000 (23:44 +0000)]
activate SHM support on the server side only when new client supports it and when client and server have the same UID.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1277
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 18 Aug 2006 23:43:27 +0000 (23:43 +0000)]
one s/0/NULL/
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1276
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 18 Aug 2006 23:42:14 +0000 (23:42 +0000)]
remove export/import objects when SHM is disable for a pa_pstream object
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1275
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 18 Aug 2006 23:40:48 +0000 (23:40 +0000)]
add new function pa_mempool_is_shared() to test whether a memory pool is suitable for SHM data transfers
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1274
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 18 Aug 2006 21:39:32 +0000 (21:39 +0000)]
hide memblock-test
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1273
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 18 Aug 2006 21:38:40 +0000 (21:38 +0000)]
remove all occurences of
pa_logXXX(__FILE__":
and replace them by
pa_logXXX("
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1272
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 18 Aug 2006 21:26:01 +0000 (21:26 +0000)]
rework logging subsystem, to implicitly include __FILE__ in pa_log() calls. In addition we now record the line numbers and function names of pa_log calls. However, those are only shown If $PULSE_LOG_META is set.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1271
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 18 Aug 2006 19:57:53 +0000 (19:57 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1270
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 18 Aug 2006 19:57:19 +0000 (19:57 +0000)]
look for shm_open in -lrt
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1269
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 18 Aug 2006 19:56:51 +0000 (19:56 +0000)]
add new test memblock-test for testing SHM import/export
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1268
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 18 Aug 2006 19:56:11 +0000 (19:56 +0000)]
update tests for new memory manager
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1267
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 18 Aug 2006 19:55:18 +0000 (19:55 +0000)]
Rework memory management to allow shared memory data transfer. The central idea
is to allocate all audio memory blocks from a per-process memory pool which is
available as read-only SHM segment to other local processes. Then, instead of
writing the actual audio data to the socket just write references to this
shared memory pool.
To work optimally all memory blocks should now be of type PA_MEMBLOCK_POOL or
PA_MEMBLOCK_POOL_EXTERNAL. The function pa_memblock_new() now generates memory
blocks of this type by default.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1266
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 18 Aug 2006 19:46:20 +0000 (19:46 +0000)]
add abstracted shared memory API
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1265
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 18 Aug 2006 19:45:19 +0000 (19:45 +0000)]
fix a bad type cast
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1264
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 18 Aug 2006 19:43:46 +0000 (19:43 +0000)]
cleanup hashmap.[ch] a little: use hash/compare func prototypes defined in idxset.h, add pa_hashmpa_{get,steal}_first
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1263
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 18 Aug 2006 19:42:14 +0000 (19:42 +0000)]
cleanup idxset.[ch] a little: define proper types for the hash/compare funcs, do ptr->int/int->ptr conversions with clean macros
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1262
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 17 Aug 2006 20:03:38 +0000 (20:03 +0000)]
fix a PA_LLIST_HEAD_INIT invocation
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1261
fefdeb5f-60dc-0310-8127-
8f9354f1896f