Changeset 2252


Ignore:
Timestamp:
Aug 28, 2008 10:44:46 AM (11 years ago)
Author:
bennylp
Message:

Print warning instead of assert when Speex AEC is instantiated with multichannels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/echo_speex.c

    r2198 r2252  
    2121#include <pjmedia/errno.h> 
    2222#include <pj/assert.h> 
     23#include <pj/log.h> 
    2324#include <pj/pool.h> 
    2425#include <speex/speex_echo.h> 
     
    6768                                           channel_count, channel_count); 
    6869#else 
    69     PJ_ASSERT_RETURN(channel_count==1, PJ_EINVAL); 
     70    if (channel_count != 1) { 
     71        PJ_LOG(2,("echo_speex.c", "Multichannel EC is not supported by this " 
     72                                  "echo canceller. It may not work.")); 
     73    } 
    7074    echo->state = speex_echo_state_init(echo->samples_per_frame, 
    7175                                        clock_rate * tail_ms / 1000); 
Note: See TracChangeset for help on using the changeset viewer.