git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@58
fefdeb5f-60dc-0310-8127-
8f9354f1896f
struct memblock_list *q;
assert(bq && chunk && chunk->memblock && chunk->length && (chunk->length % bq->base) == 0);
+ if (bq->blocks_tail && bq->blocks_tail->chunk.memblock == chunk->memblock) {
+ /* Try to merge memory chunks */
+
+ if (bq->blocks_tail->chunk.index+bq->blocks_tail->chunk.length == chunk->index) {
+ bq->blocks_tail->chunk.length += chunk->length;
+ bq->current_length += chunk->length;
+
+ /* fprintf(stderr, __FILE__": merge succeeded: %u\n", chunk->length);*/
+ return;
+ }
+ }
+
q = malloc(sizeof(struct memblock_list));
assert(q);
continue;
assert(t >= s+k+k);
-
+
if (conn->sink_input) {
rate = conn->sink_input->sample_spec.rate;
volume = (conn->sink_input->volume*0xFF)/0x100;
- move more stuff from module-oss[-dma] to liboss-util
-- merge memchunks in memblockq
-
- create libstatustext, libsocketutil
- prefix modules/libraries with pa_
- autoloading/autounloading
- slp/rendezvous
- doxygen
+- make mcalign merge chunks
drivers:
- libao