[pulseaudio-discuss] libpulsecore dependency on libpulsecommon
david.henningsson at canonical.com
Wed Nov 16 04:39:36 PST 2011
On 11/16/2011 12:49 PM, Maarten Bosmans wrote:
> I'm looking for some guidance on how to solve
> The problem is that pulsecore/pstream.c (in libpulsecommon) includes
> pulsecore/core-scache.h (which is itself in and includes from
> libpulsecore), this is wrong. Apparantly it causes real trouble on
> The header core-scache.h is only included to make the
> PA_SCACHE_ENTRY_SIZE_MAX preprocessor symbol available.
#define FRAME_SIZE_MAX_ALLOW PA_SCACHE_ENTRY_SIZE_MAX /* allow uploading
a single sample in one frame at max */
> There are several solutions possible.
> - Move the #define to a file in libpulsecommon. This is the solution
> proposed in the patch attached to the bug. However, I don't like the
> proposed new location in memchunk.h, because it is quite unrelated to
> scache functionality.
How about turning this around:
#define PA_FRAME_SIZE_MAX_ALLOW 1024*1024*16 in pstream.h (or somewhere
else in libpulsecommon)
#define PA_SCACHE_ENTRY_SIZE_MAX PA_FRAME_SIZE_MAX_ALLOW
David Henningsson, Canonical Ltd.
More information about the pulseaudio-discuss