diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-09-14 23:08:39 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-09-14 23:08:39 +0000 |
commit | 935826f4f318a89a0a570f766deb54808a4f9683 (patch) | |
tree | 3e2cf7ec1386fa5711367b59bb1aaa9d309a86fc /polyp/scache.h | |
parent | 6e019795bff589ef0a867772975e34da78fffefb (diff) |
make module-combine autoloadable
clean up cli language
introduce lazy sample cache
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@201 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/scache.h')
-rw-r--r-- | polyp/scache.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/polyp/scache.h b/polyp/scache.h index cfd479b5..e0574409 100644 --- a/polyp/scache.h +++ b/polyp/scache.h @@ -33,9 +33,12 @@ struct pa_scache_entry { uint32_t volume; struct pa_sample_spec sample_spec; struct pa_memchunk memchunk; + + int auto_unload; + time_t last_used_time; }; -int pa_scache_add_item(struct pa_core *c, const char *name, struct pa_sample_spec *ss, struct pa_memchunk *chunk, uint32_t *index); +int pa_scache_add_item(struct pa_core *c, const char *name, struct pa_sample_spec *ss, struct pa_memchunk *chunk, uint32_t *index, int auto_unload); int pa_scache_remove_item(struct pa_core *c, const char *name); int pa_scache_play_item(struct pa_core *c, const char *name, struct pa_sink *sink, uint32_t volume); @@ -46,4 +49,6 @@ uint32_t pa_scache_get_id_by_name(struct pa_core *c, const char *name); uint32_t pa_scache_total_size(struct pa_core *c); +void pa_scache_unload_unused(struct pa_core *c); + #endif |