mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-19 08:57:00 -05:00
remove auto-load-sample stuff
introduce "lazy samples" git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@203 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
8c110d904d
commit
9ca72dce0b
11 changed files with 158 additions and 140 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue