Changeset 2923:8ea2211037fa in roaraudio for libroardsp
- Timestamp:
- 10/16/09 17:56:34 (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libroardsp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libroardsp/transcode.c
r2922 r2923 42 42 #ifdef ROAR_HAVE_LIBSPEEX 43 43 {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}, 45 45 #endif 46 46 {-1, NULL, NULL, NULL, NULL, NULL, NULL} -
libroardsp/transcode_speex.c
r2914 r2923 136 136 } 137 137 138 int 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 138 158 int roar_xcoder_speex_encode (struct roar_xcoder * state, void * buf, size_t len) { 139 159 struct roar_xcoder_speex * self = state->inst;
Note: See TracChangeset
for help on using the changeset viewer.