Ignore:
Timestamp:
Mar 4, 2010 3:47:25 PM (15 years ago)
Author:
nanang
Message:

Ticket #1008:

  • Applied VAS AMR playback solution from Forum Nokia.
  • Fixed AMR playback for VAS and APS in composing DTX/NO_DATA (frame type 15) frame header.
  • Modified symbsndtest test application to support non-PCM audio.
  • Minor check fix in pjmedia_codec_mgr_destroy(), caught assertion when VAS factory init failed and media endpoint tried to destroy codec manager (codec mgr hasn't been init-ed).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/symb_aps_dev.cpp

    r2958 r3116  
    10351035                    buf.iBuffer.Append((TUint8*)sf->data, len); 
    10361036                } else { 
    1037                     buf.iBuffer.Append(0); 
     1037                    enum {NO_DATA_FT = 15 }; 
     1038                    pj_uint8_t amr_header = 4 || (NO_DATA_FT << 3); 
     1039 
     1040                    buf.iBuffer.Append(amr_header); 
    10381041                } 
    10391042 
     
    10411044             
    10421045            } else { /* PJMEDIA_FRAME_TYPE_NONE */ 
    1043                 buf.iBuffer.Append(0); 
    1044                  
     1046                enum {NO_DATA_FT = 15 }; 
     1047                pj_uint8_t amr_header = 4 || (NO_DATA_FT << 3); 
     1048 
     1049                buf.iBuffer.Append(amr_header); 
     1050 
    10451051                frame->samples_cnt = 0; 
    10461052                frame->subframe_cnt = 0; 
Note: See TracChangeset for help on using the changeset viewer.