Changeset 2923:8ea2211037fa in roaraudio for libroardsp


Ignore:
Timestamp:
10/16/09 17:56:34 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added stub of roar_xcoder_speex_proc_header()

Location:
libroardsp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/transcode.c

    r2922 r2923  
    4242#ifdef ROAR_HAVE_LIBSPEEX 
    4343 {ROAR_CODEC_ROAR_SPEEX, roar_xcoder_speex_init, roar_xcoder_speex_uninit, roar_xcoder_speex_packet_size, 
    44                      roar_xcoder_speex_encode, roar_xcoder_speex_decode, NULL}, 
     44                     roar_xcoder_speex_encode, roar_xcoder_speex_decode, roar_xcoder_speex_proc_header}, 
    4545#endif 
    4646 {-1, NULL, NULL, NULL, NULL, NULL, NULL} 
  • libroardsp/transcode_speex.c

    r2914 r2923  
    136136} 
    137137 
     138int roar_xcoder_speex_proc_header(struct roar_xcoder * state) { 
     139 struct roar_xcoder_speex * self = state->inst; 
     140 
     141 // we do allready open streams not considder an error. 
     142 if ( state->stage == ROAR_XCODER_STAGE_OPENED ) 
     143  return 0; 
     144 
     145 // everything else expected an INITED stream (OPENING, MAGIC,..) 
     146 // is an error... 
     147 if ( state->stage != ROAR_XCODER_STAGE_INITED ) 
     148  return -1; 
     149 
     150 if ( state->encode ) { 
     151 } else { 
     152 } 
     153 
     154 // on no error... 
     155 return 0; 
     156} 
     157 
    138158int roar_xcoder_speex_encode     (struct roar_xcoder * state, void * buf, size_t len) { 
    139159 struct roar_xcoder_speex * self = state->inst; 
Note: See TracChangeset for help on using the changeset viewer.