Changeset 2675:8b6547df9647 in roaraudio for roard/container_framework.c


Ignore:
Timestamp:
09/12/09 23:46:24 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added most of the cf functions, open is still missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/container_framework.c

    r2673 r2675  
    213213int     cont_fw_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
    214214 
     215// CF: 
     216int cont_fw_cf_open(CODECFILTER_USERDATA_T * inst, int codec, 
     217                                             struct roar_stream_server * info, 
     218                                             struct roar_codecfilter   * filter); 
     219 
     220int cont_fw_cf_close(CODECFILTER_USERDATA_T   inst) { 
     221 return cont_fw_delete(inst); 
     222} 
     223 
     224int cont_fw_cf_pause(CODECFILTER_USERDATA_T   inst, int newstate); 
     225 
     226 
     227// no direct read or writing... 
     228int cont_fw_cf_write(CODECFILTER_USERDATA_T   inst, char * buf, int len) { 
     229 return -1; 
     230} 
     231 
     232int cont_fw_cf_read (CODECFILTER_USERDATA_T   inst, char * buf, int len) { 
     233 return -1; 
     234} 
     235 
     236int cont_fw_cf_flush(CODECFILTER_USERDATA_T   inst) { 
     237 struct cont_fw_parent_inst * self = (void*)inst; 
     238 
     239 if ( self->pcb.flush != NULL ) 
     240  return self->pcb.flush(self); 
     241 
     242 return 0; 
     243} 
     244 
     245int cont_fw_cf_delay(CODECFILTER_USERDATA_T   inst, uint_least32_t * delay); 
     246 
     247int cont_fw_cf_ctl  (CODECFILTER_USERDATA_T   inst, int cmd, void * data) { 
     248 return -1; 
     249} 
     250 
    215251//ll 
Note: See TracChangeset for help on using the changeset viewer.