Ignore:
Timestamp:
Feb 11, 2015 5:15:29 AM (10 years ago)
Author:
nanang
Message:

Close #1814: Add audio frame preview callbacks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h

    r4957 r4982  
    58125812     */ 
    58135813    pj_bool_t no_rtcp_sdes_bye; 
     5814 
     5815    /** 
     5816     * Optional callback for audio frame preview right before queued to 
     5817     * the speaker. 
     5818     * Notes: 
     5819     * - application MUST NOT block or perform long operation in the callback 
     5820     *   as the callback may be executed in sound device thread 
     5821     * - when using software echo cancellation, application MUST NOT modify 
     5822     *   the audio data from within the callback, otherwise the echo canceller 
     5823     *   will not work properly. 
     5824     */ 
     5825    void (*on_aud_prev_play_frame)(pjmedia_frame *frame); 
     5826 
     5827    /** 
     5828     * Optional callback for audio frame preview recorded from the microphone 
     5829     * before being processed by any media component such as software echo 
     5830     * canceller. 
     5831     * Notes: 
     5832     * - application MUST NOT block or perform long operation in the callback 
     5833     *   as the callback may be executed in sound device thread 
     5834     * - when using software echo cancellation, application MUST NOT modify 
     5835     *   the audio data from within the callback, otherwise the echo canceller 
     5836     *   will not work properly. 
     5837     */ 
     5838    void (*on_aud_prev_rec_frame)(pjmedia_frame *frame); 
    58145839}; 
    58155840 
Note: See TracChangeset for help on using the changeset viewer.