Rework memory management to allow shared memory data transfer. The central idea
commit5db6cde1365f2e9fa9c88a64cab99ba225b1cb04
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Aug 2006 19:55:18 +0000 (18 19:55 +0000)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Aug 2006 19:55:18 +0000 (18 19:55 +0000)
treef837bc433ba8b6f904e6d512f9c9c2552a9827db
parentf08de96536888d616b591d82ad6510a412b68112
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: svn://svn.0pointer.net/pulseaudio/trunk@1266 fefdeb5f-60dc-0310-8127-8f9354f1896f
45 files changed:
src/daemon/main.c
src/modules/module-alsa-sink.c
src/modules/module-alsa-source.c
src/modules/module-combine.c
src/modules/module-jack-source.c
src/modules/module-oss-mmap.c
src/modules/module-oss.c
src/modules/module-pipe-source.c
src/modules/module-sine.c
src/modules/module-tunnel.c
src/modules/rtp/module-rtp-recv.c
src/modules/rtp/module-rtp-send.c
src/modules/rtp/rtp.c
src/modules/rtp/rtp.h
src/pulse/context.c
src/pulse/internal.h
src/pulse/stream.c
src/pulsecore/cli-command.c
src/pulsecore/core-scache.c
src/pulsecore/core.c
src/pulsecore/core.h
src/pulsecore/mcalign.c
src/pulsecore/mcalign.h
src/pulsecore/memblock.c
src/pulsecore/memblock.h
src/pulsecore/memblockq.c
src/pulsecore/memblockq.h
src/pulsecore/memchunk.c
src/pulsecore/memchunk.h
src/pulsecore/protocol-esound.c
src/pulsecore/protocol-native.c
src/pulsecore/protocol-simple.c
src/pulsecore/pstream.c
src/pulsecore/pstream.h
src/pulsecore/resampler.c
src/pulsecore/resampler.h
src/pulsecore/sample-util.c
src/pulsecore/sample-util.h
src/pulsecore/sink-input.c
src/pulsecore/sink.c
src/pulsecore/sound-file-stream.c
src/pulsecore/sound-file.c
src/pulsecore/sound-file.h
src/pulsecore/source-output.c
src/pulsecore/source.c