Changeset 2184:429492a8c3b9 in roaraudio


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

added roar_bixcoder_packet_size()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/transcode.c

    r2183 r2184  
    157157} 
    158158 
    159 int roar_bixcoder_packet_size (struct roar_bixcoder * state, int samples); 
     159int roar_bixcoder_packet_size (struct roar_bixcoder * state, int samples) { 
     160 int ret; 
     161 
     162 if ( state == NULL ) 
     163  return -1; 
     164 
     165 if ( (ret = roar_xcoder_packet_size(&(state->encoder), samples)) == -1 ) 
     166  return -1; 
     167 
     168 if ( roar_xcoder_packet_size(&(state->decoder), ret) != ret ) 
     169  return -1; 
     170 
     171 return ret; 
     172} 
     173 
    160174int roar_bixcoder_close       (struct roar_bixcoder * state) { 
    161175 int ret = 0; 
Note: See TracChangeset for help on using the changeset viewer.