Changeset 3284:33e7bdf0b6cc in roaraudio


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

force codec to be in network byte order

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio_rtp.c

    r3283 r3284  
    239239 
    240240 if ( s != NULL ) { 
     241  switch (s->info.codec) { 
     242   case ROAR_CODEC_PCM_S_LE: 
     243   case ROAR_CODEC_PCM_S_PDP: 
     244     s->info.codec = ROAR_CODEC_PCM_S_BE; 
     245    break; 
     246   case ROAR_CODEC_PCM_U_LE: 
     247   case ROAR_CODEC_PCM_U_PDP: 
     248     s->info.codec = ROAR_CODEC_PCM_U_BE; 
     249    break; 
     250  } 
     251 
    241252  self->header.payload_type = _info2pt(&(s->info)); 
    242253  roar_vio_ctl(self->vio, cmd, data); 
Note: See TracChangeset for help on using the changeset viewer.