Changeset 2816:b9e357b0dc43 in roaraudio for roard/codecfilter_wave.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_wave.c

    r2607 r2816  
    154154 struct codecfilter_wave_inst * self = (struct codecfilter_wave_inst *) inst; 
    155155 struct roar_stream           * s    = ROAR_STREAM(self->stream); 
    156  char header[44]; 
     156 void   * header; 
    157157 int32_t  tmp32; 
    158158 int16_t  tmp16; 
    159159 int16_t  bits; 
    160160 int16_t  codec; 
     161 int      sid; 
    161162 
    162163 ROAR_DBG("cf_wave_write(inst=%p, buf=%p, len=%i) = ?", inst, buf, len); 
     
    169170  if ( s->fh == -1 ) { 
    170171   errno = EAGAIN; 
     172   return -1; 
     173  } 
     174 
     175  sid = ROAR_STREAM(self->stream)->id; 
     176 
     177  if ( stream_prethru_destroy(sid) == -1 ) { 
     178   return -1; 
     179  } 
     180 
     181  if ( stream_prethru_add_data(sid, &header, 44) == -1 ) { 
    171182   return -1; 
    172183  } 
Note: See TracChangeset for help on using the changeset viewer.