Changeset 2816:b9e357b0dc43 in roaraudio for roard/codecfilter_celt.c


Ignore:
Timestamp:
09/29/09 18:04:39 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added prethru support and updated list of codecs a bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/codecfilter_celt.c

    r2204 r2816  
    225225 int diff; 
    226226 int fs2 = self->frame_size * 2 * ROAR_STREAM(self->stream)->info.channels; 
     227 int sid; 
    227228 uint16_t pkglen_net, pkglen; 
    228229 unsigned char cbits[BS+2]; 
     230 void * prethru; 
    229231 
    230232 if ( !self->opened_encoder ) { 
     233  sid = ROAR_STREAM(self->stream)->id; 
     234 
     235  if ( stream_prethru_destroy(sid) == -1 ) { 
     236   return -1; 
     237  } 
     238 
     239  if ( stream_prethru_add_data(sid, &prethru, ROAR_CELT_MAGIC_LEN) == -1 ) { 
     240   return -1; 
     241  } 
     242 
     243  memcpy(prethru, ROAR_CELT_MAGIC, ROAR_CELT_MAGIC_LEN); 
     244 
    231245  if ( stream_vio_s_write(self->stream, ROAR_CELT_MAGIC, ROAR_CELT_MAGIC_LEN) != ROAR_CELT_MAGIC_LEN ) 
    232246   return -1; 
Note: See TracChangeset for help on using the changeset viewer.