Changeset 303


Ignore:
Timestamp:
Mar 6, 2006 4:24:50 PM (18 years ago)
Author:
bennylp
Message:

Set minimum quality for Speex ultrawideband codec to 5 (because sound is broken in Linux)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/speex_codec.c

    r291 r303  
    2525#include <speex/speex.h> 
    2626#include <pj/assert.h> 
     27#include <pj/log.h> 
    2728#include <pj/pool.h> 
    2829#include <pj/string.h> 
    2930#include <pj/os.h> 
    3031 
     32#define THIS_FILE   "speex_codec.c" 
     33 
    3134#define DEFAULT_QUALITY     4 
    3235#define DEFAULT_COMPLEXITY  -1 
    33  
    3436 
    3537/* Prototypes for Speex factory */ 
     
    245247    spx_factory.speex_param[PARAM_UWB].complexity = complexity; 
    246248 
     249    /* Somehow quality <=4 is broken in linux. */ 
     250    if (quality <= 4) { 
     251        PJ_LOG(4,(THIS_FILE, "Adjusting quality to 5 for uwb")); 
     252        spx_factory.speex_param[PARAM_UWB].quality = 5; 
     253    } 
     254 
    247255    /* Get codec framesize and avg bitrate for each mode. */ 
    248256    for (i=0; i<PJ_ARRAY_SIZE(spx_factory.speex_param); ++i) { 
Note: See TracChangeset for help on using the changeset viewer.