mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
remove global memblock statistic variables in favor of memblock_stat objects
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@137 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
81822a7519
commit
e75b65715b
32 changed files with 158 additions and 80 deletions
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#define MAX_FILE_SIZE (1024*1024)
|
||||
|
||||
int pa_sound_file_load(const char *fname, struct pa_sample_spec *ss, struct pa_memchunk *chunk) {
|
||||
int pa_sound_file_load(const char *fname, struct pa_sample_spec *ss, struct pa_memchunk *chunk, struct pa_memblock_stat *s) {
|
||||
SNDFILE*sf = NULL;
|
||||
SF_INFO sfinfo;
|
||||
int ret = -1;
|
||||
|
|
@ -39,7 +39,7 @@ int pa_sound_file_load(const char *fname, struct pa_sample_spec *ss, struct pa_m
|
|||
goto finish;
|
||||
}
|
||||
|
||||
chunk->memblock = pa_memblock_new(l);
|
||||
chunk->memblock = pa_memblock_new(l, s);
|
||||
assert(chunk->memblock);
|
||||
chunk->index = 0;
|
||||
chunk->length = l;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue