summaryrefslogtreecommitdiffstats
path: root/polyp/scache.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-15 14:05:28 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-15 14:05:28 +0000
commit9ca72dce0bda4e279ff82a01847ee09a72434b33 (patch)
tree93b3983317116224fb0070a8cf2b9a143f08555c /polyp/scache.h
parent8c110d904ddf30ce35c9a0c18449436af18a5095 (diff)
remove auto-load-sample stuff
introduce "lazy samples" git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@203 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/scache.h')
-rw-r--r--polyp/scache.h9
1 files changed, 7 insertions, 2 deletions
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);