Changeset 2193:78e5b51e6117 in roaraudio


Ignore:
Timestamp:
07/26/09 22:57:55 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

corrected magic writing code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/transcode_celt.c

    r2192 r2193  
    2727#ifdef ROAR_HAVE_LIBCELT 
    2828 
    29 #define 16BIT (16/8) 
     29#define _16BIT (16/8) 
    3030 
    3131int roar_xcoder_celt_init       (struct roar_xcoder * state) { 
     
    101101  return -1; 
    102102 
    103  if ( len != self->frame_size * 16BIT * state->info.pcm.channels ) 
     103 if ( len != self->frame_size * _16BIT * state->info.pcm.channels ) 
    104104  return -1; 
    105105 
    106  if ( state->state == ROAR_XCODER_STAGE_INITED ) { 
     106 if ( state->stage == ROAR_XCODER_STAGE_INITED ) { 
    107107  if ( roar_vio_write(state->backend, ROAR_CELT_MAGIC, ROAR_CELT_MAGIC_LEN) != ROAR_CELT_MAGIC_LEN ) 
    108108   return -1; 
Note: See TracChangeset for help on using the changeset viewer.