add resampling

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@45 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2004-07-03 00:19:17 +00:00
parent 13b35a2489
commit 741aa44ffc
26 changed files with 251 additions and 115 deletions

View file

@ -78,17 +78,3 @@ void memblock_unref_fixed(struct memblock *b) {
b->type = MEMBLOCK_DYNAMIC;
}
void memchunk_make_writable(struct memchunk *c) {
struct memblock *n;
assert(c && c->memblock && c->memblock->ref >= 1);
if (c->memblock->ref == 1)
return;
n = memblock_new(c->length);
assert(n);
memcpy(n->data, c->memblock->data+c->index, c->length);
memblock_unref(c->memblock);
c->memblock = n;
c->index = 0;
}