Changeset 3995:673630473abf in roaraudio


Ignore:
Timestamp:
06/29/10 15:32:12 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

get bufferstore working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio_buffer_store.c

    r3994 r3995  
    5151 memset(calls, 0, sizeof(struct roar_vio_calls)); 
    5252 
     53 if ( inst != NULL ) 
     54  *inst = self; 
     55 
    5356 calls->inst     = self; 
    5457 calls->close    = roar_vio_buffer_store_close; 
     
    8184 struct roar_vio_buffer_store * self = vio->inst; 
    8285 
     86 ROAR_DBG("roar_vio_buffer_store_read(vio=%p, buf=%p, count=%llu) = ?", vio, buf, (long long unsigned int)count); 
     87 
    8388 if ( count == 0 ) 
    8489  return 0; 
     
    9095  return 0; 
    9196 
     97 ROAR_DBG("roar_vio_buffer_store_read(vio=%p, buf=%p, count=%llu) = ?", vio, buf, (long long unsigned int)count); 
     98 
    9299 if ( roar_buffer_shift_out(&(self->out), buf, &count) == -1 ) 
    93100  return -1; 
     101 
     102 ROAR_DBG("roar_vio_buffer_store_read(*) = %llu", (long long unsigned int)count); 
    94103 
    95104 return count; 
Note: See TracChangeset for help on using the changeset viewer.