Ignore:
Timestamp:
Feb 5, 2009 10:59:14 AM (15 years ago)
Author:
nanang
Message:
  • Added new API for sound & sound port to create/open sound device with extended setting, to allow opening sound device with non-PCM format and other settings.
  • Updated symbian_ua/ua.cpp to be able to reopen sound device when audio stream session is using non-PCM data/passthrough codec.
  • Updated stream.c to allow it works with non-PCM data.
  • Added PCMU/A frames processing into non-PCM play/record callbacks in symbian_audio_aps.cpp.
  • Added passthrough codec init/deinitialization in pjsua-lib.
  • Added a new pjmedia_frame_ext helper function, pjmedia_frame_ext_pop_subframes, to pop-out/remove some subframes.
  • Other minor updates/fixes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/aps-direct/pjsip/src/pjsua-lib/pjsua_media.c

    r2425 r2438  
    173173#endif /* PJMEDIA_HAS_INTEL_IPP */ 
    174174 
     175#if PJMEDIA_HAS_PASSTHROUGH_CODECS 
     176    /* Register passthrough codecs */ 
     177    status = pjmedia_codec_passthrough_init(pjsua_var.med_endpt); 
     178    if (status != PJ_SUCCESS) { 
     179        pjsua_perror(THIS_FILE, "Error initializing passthrough codecs", 
     180                     status); 
     181        return status; 
     182    } 
     183#endif /* PJMEDIA_HAS_PASSTHROUGH_CODECS */ 
     184 
    175185#if PJMEDIA_HAS_L16_CODEC 
    176186    /* Register L16 family codecs, but disable all */ 
     
    574584            pjmedia_codec_ipp_deinit(); 
    575585#       endif   /* PJMEDIA_HAS_INTEL_IPP */ 
     586 
     587#       if PJMEDIA_HAS_PASSTHROUGH_CODECS 
     588            pjmedia_codec_passthrough_deinit(); 
     589#       endif /* PJMEDIA_HAS_PASSTHROUGH_CODECS */ 
    576590 
    577591#       if PJMEDIA_HAS_L16_CODEC 
Note: See TracChangeset for help on using the changeset viewer.