Opened 12 years ago

Closed 12 years ago

#283 closed enhancement (fixed)

There should be a roar_buffer_moveinto() like function moving a buffer into a buffer chain

Reported by: ph3-der-loewe Owned by: ph3-der-loewe
Priority: wishlist Milestone: RoarAudio major release 1.0
Component: libroar and friends Version: 1.0beta4
Keywords: buffer Cc:
Architecture: Compiler:
Difficulty: easy Kernel:
Operating System: Parent Tickets:
Patch attached: no Protocol:
Sound driver: Topic: New feature

Description

There should be a function like roar_buffer_moveinto() moving a buffer into a buffer chain. This function should take a pointer to the buffer pointer. The function should basically do the following:

if ( *buf == NULL ) {
 *buf = *next;
 *next = NULL;
} else {
 roar_buffer_moveinto(*buf, next);
}

Such a function may be useful in a lot cases. It may be very helpful with the common protocol interface (see #257).

Subtickets

Change History (2)

comment:1 Changed 12 years ago by ph3-der-loewe

  • Owner set to ph3-der-loewe
  • Status changed from new to accepted

comment:2 Changed 12 years ago by ph3-der-loewe

  • Resolution set to fixed
  • Status changed from accepted to closed
  • Version changed from current to 1.0beta4

Has been fixed by implementing roar_buffer_moveintoqueue(). Feature test macro is ROAR_FT_FUNC_BUFFER_MOVEINTOQUEUE.

Note: See TracTickets for help on using tickets.