rework shm usage negotiation; merge a few pa_bool_t in a single bit field to save a bit of memory; drop redundant implementation of pa_init_proplist()

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2544 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2008-06-17 18:27:24 +00:00
parent 36c5259db2
commit 0d0911f9c6
2 changed files with 42 additions and 99 deletions

View file

@ -75,8 +75,9 @@ struct pa_context {
pa_mempool *mempool;
pa_bool_t is_local;
pa_bool_t do_autospawn;
pa_bool_t is_local:1;
pa_bool_t do_autospawn:1;
pa_bool_t do_shm:1;
int autospawn_lock_fd;
pa_spawn_api spawn_api;
@ -117,8 +118,13 @@ struct pa_stream {
pa_proplist *proplist;
pa_bool_t channel_valid:1;
pa_bool_t suspended:1;
pa_bool_t corked:1;
pa_bool_t timing_info_valid:1;
pa_bool_t auto_timing_update_requested:1;
uint32_t channel;
pa_bool_t channel_valid;
uint32_t syncid;
uint32_t stream_index;
@ -127,17 +133,13 @@ struct pa_stream {
uint32_t device_index;
char *device_name;
pa_bool_t suspended;
pa_memchunk peek_memchunk;
void *peek_data;
pa_memblockq *record_memblockq;
pa_bool_t corked;
/* Store latest latency info */
pa_timing_info timing_info;
pa_bool_t timing_info_valid;
/* Use to make sure that time advances monotonically */
pa_usec_t previous_time;
@ -152,7 +154,6 @@ struct pa_stream {
/* Latency interpolation stuff */
pa_time_event *auto_timing_update_event;
pa_bool_t auto_timing_update_requested;
pa_smoother *smoother;
@ -234,6 +235,4 @@ pa_tagstruct *pa_tagstruct_command(pa_context *c, uint32_t command, uint32_t *ta
#define PA_CHECK_VALIDITY_RETURN_NULL(context, expression, error) PA_CHECK_VALIDITY_RETURN_ANY(context, expression, error, NULL)
void pa_init_proplist(pa_proplist *p);
#endif