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

Close #1814: Add audio frame preview callbacks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/sound_port.h

    r4082 r4982  
    9696     */ 
    9797    unsigned ec_options; 
     98 
     99    /** 
     100     * Arbitrary user data for playback and record preview callbacks below. 
     101     */ 
     102    void *user_data; 
     103 
     104    /** 
     105     * Optional callback for audio frame preview right before queued to 
     106     * the speaker. 
     107     * Notes: 
     108     * - application MUST NOT block or perform long operation in the callback 
     109     *   as the callback may be executed in sound device thread 
     110     * - when using software echo cancellation, application MUST NOT modify 
     111     *   the audio data from within the callback, otherwise the echo canceller 
     112     *   will not work properly. 
     113     * - the return value of the callback will be ignored 
     114     */ 
     115    pjmedia_aud_play_cb on_play_frame; 
     116 
     117    /** 
     118     * Optional callback for audio frame preview recorded from the microphone 
     119     * before being processed by any media component such as software echo 
     120     * canceller. 
     121     * Notes: 
     122     * - application MUST NOT block or perform long operation in the callback 
     123     *   as the callback may be executed in sound device thread 
     124     * - when using software echo cancellation, application MUST NOT modify 
     125     *   the audio data from within the callback, otherwise the echo canceller 
     126     *   will not work properly. 
     127     * - the return value of the callback will be ignored 
     128     */ 
     129    pjmedia_aud_rec_cb on_rec_frame; 
    98130 
    99131} pjmedia_snd_port_param; 
Note: See TracChangeset for help on using the changeset viewer.