Changeset 2816:b9e357b0dc43 in roaraudio for roard/codecfilter_celt.c
- Timestamp:
- 09/29/09 18:04:39 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/codecfilter_celt.c
r2204 r2816 225 225 int diff; 226 226 int fs2 = self->frame_size * 2 * ROAR_STREAM(self->stream)->info.channels; 227 int sid; 227 228 uint16_t pkglen_net, pkglen; 228 229 unsigned char cbits[BS+2]; 230 void * prethru; 229 231 230 232 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 231 245 if ( stream_vio_s_write(self->stream, ROAR_CELT_MAGIC, ROAR_CELT_MAGIC_LEN) != ROAR_CELT_MAGIC_LEN ) 232 246 return -1;
Note: See TracChangeset
for help on using the changeset viewer.