From 9ca72dce0bda4e279ff82a01847ee09a72434b33 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 15 Sep 2004 14:05:28 +0000 Subject: remove auto-load-sample stuff introduce "lazy samples" git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@203 fefdeb5f-60dc-0310-8127-8f9354f1896f --- polyp/scache.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'polyp/scache.h') diff --git a/polyp/scache.h b/polyp/scache.h index e0574409..4fb3dc8e 100644 --- a/polyp/scache.h +++ b/polyp/scache.h @@ -30,15 +30,20 @@ struct pa_scache_entry { struct pa_core *core; uint32_t index; char *name; + uint32_t volume; struct pa_sample_spec sample_spec; struct pa_memchunk memchunk; - int auto_unload; + char *filename; + + int lazy; 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 auto_unload); +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_file(struct pa_core *c, const char *name, const char *filename, uint32_t *index); +int pa_scache_add_file_lazy(struct pa_core *c, const char *name, const char *filename, uint32_t *index); 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); -- cgit