Changeset 3280:cae98b99851b in roaraudio


Ignore:
Timestamp:
02/01/10 12:32:12 (10 years ago)
Author:
phi
Branch:
default
Message:

TODO list and start of handling ROAR_VIO_CTL_SET_[S]STREAM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio_rtp.c

    r3279 r3280  
    5555 self->header.version      = 2; 
    5656 self->header.payload_type = ROAR_RTP_PT_UNKNOWN; 
     57 
     58 // TODO: init with random values: 
     59 //       Sequence Number  
     60 //       SSRC 
    5761 
    5862 memset(calls, 0, sizeof(struct roar_vio_calls)); 
     
    117121 memset(data.vp, 0, len_need); 
    118122 
     123 self->header.seq_num++; 
     124 
    119125 data.cp[0]   = 2; 
    120126 data.cp[0]  |= self->header.csrc_count   << 4; 
     
    162168int     roar_vio_rtp_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
    163169 struct roar_rtp_inst * self = vio->inst; 
     170 struct roar_stream          * s  = NULL; 
     171 struct roar_stream_server   * ss = NULL; 
    164172 
    165173 ROAR_DBG("roar_vio_rtp_ctl(vio=%p, cmd=%i, data=%p) = ?", vio, cmd, data); 
     
    171179 
    172180 switch (cmd) { 
     181  case ROAR_VIO_CTL_SET_SSTREAM: 
     182    s = ROAR_STREAM(ss = data); 
     183   break; 
     184  case ROAR_VIO_CTL_SET_STREAM: 
     185    s = ROAR_STREAM(data); 
     186   break; 
    173187  case ROAR_VIO_CTL_GET_NEXT: 
    174188    *(struct roar_vio_calls **)data = self->vio; 
     
    183197 ROAR_DBG("roar_vio_rtp_ctl(vio=%p, cmd=%i, data=%p) = ?", vio, cmd, data); 
    184198 
     199 if ( s != NULL ) { 
     200  roar_vio_ctl(self->vio, cmd, data); 
     201  return 0; 
     202 } 
     203 
    185204 return roar_vio_ctl(self->vio, cmd, data); 
    186205} 
Note: See TracChangeset for help on using the changeset viewer.