Ignore:
Timestamp:
Feb 13, 2009 11:53:12 AM (11 years ago)
Author:
bennylp
Message:

Added APS-Direct emulation to sound port and pjsua_app.c, also fixed miscellaneous compilation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/aps-direct/pjmedia/include/pjmedia-codec/amr_helper.h

    r2444 r2452  
    689689                                                 unsigned frame_len) 
    690690{ 
    691     unsigned i; 
     691    int i; 
    692692 
    693693    if (amrnb) { 
    694694        for (i = 0; i < 9; ++i) 
    695695            if (frame_len == pjmedia_codec_amrnb_framelen[i]) 
    696                 return i; 
     696                return (pj_int8_t)i; 
    697697    } else { 
    698698        for (i = 0; i < 10; ++i) { 
    699699            if (frame_len == pjmedia_codec_amrwb_framelen[i]) 
    700                 return i; 
     700                return (pj_int8_t)i; 
    701701        } 
    702702    } 
Note: See TracChangeset for help on using the changeset viewer.