Changeset 3764:2a2b1eb426c4 in roaraudio for libroar/vio_pipe.c


Ignore:
Timestamp:
05/03/10 14:30:48 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added new buffer function roar_buffer_new_data() to make common alloc case more easy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio_pipe.c

    r3517 r3764  
    326326    } 
    327327 
    328     if ( roar_buffer_new(&next, count) == -1 ) 
    329      return -1; 
    330  
    331     if ( roar_buffer_get_data(next, &data) == -1 ) { 
    332      roar_buffer_free(next); 
    333      return -1; 
    334     } 
     328    if ( roar_buffer_new_data(&next, count, &data) == -1 ) 
     329     return -1; 
    335330 
    336331    memcpy(data, buf, count); 
Note: See TracChangeset for help on using the changeset viewer.