Changeset 2997:eee5ab459b3e in roaraudio for libroardsp


Ignore:
Timestamp:
10/27/09 11:40:28 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

check for correct format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/filter_speex_prep.c

    r2996 r2997  
    2828// TODO: check parameters we allready know: 
    2929int roardsp_speex_prep_init   (struct roardsp_filter * filter, struct roar_stream * stream, int id) { 
    30  struct roardsp_speex_prep * self = roar_mm_malloc(sizeof(struct roardsp_speex_prep)); 
     30 struct roardsp_speex_prep * self; 
     31 
     32 if ( filter->channels != 1 ) 
     33  return -1; 
     34 
     35 if ( filter->bits != 16 ) 
     36  return -1; 
     37 
     38 self = roar_mm_malloc(sizeof(struct roardsp_speex_prep)); 
    3139 
    3240 if ( self == NULL ) 
Note: See TracChangeset for help on using the changeset viewer.