Ignore:
Timestamp:
Sep 12, 2006 11:33:22 AM (18 years ago)
Author:
bennylp
Message:

Added EOF callback and get_size() in pjmedia_mem_capture port.

File:
1 edited

Legend:

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

    r704 r706  
    135135 
    136136/** 
     137 * Register a callback to be called when no space left in the buffer. 
     138 * Note that when a callback is registered, this callback will also be 
     139 * called when application destroys the port and the callback has not  
     140 * been called before. 
     141 * 
     142 * @param port          The memory recorder port. 
     143 * @param user_data     User data to be specified in the callback 
     144 * @param cb            Callback to be called. If the callback returns non- 
     145 *                      PJ_SUCCESS, the recording will stop. In other cases 
     146 *                      recording will be restarted and the rest of the frame 
     147 *                      will be stored starting from the beginning of the  
     148 *                      buffer. Note that if application destroys the capture 
     149 *                      port in the callback, it must return non-PJ_SUCCESS  
     150 *                      here. 
     151 * 
     152 * @return              PJ_SUCCESS on success. 
     153 */ 
     154PJ_DECL(pj_status_t) 
     155pjmedia_mem_capture_set_eof_cb(pjmedia_port *port, 
     156                               void *user_data, 
     157                               pj_status_t (*cb)(pjmedia_port *port, 
     158                                                 void *usr_data)); 
     159 
     160/** 
     161 * Return the current size of the recorded data in the buffer. 
     162 * 
     163 * @param port          The memory recorder port. 
     164 * @return              The size of buffer data.. 
     165 */ 
     166PJ_DECL(pj_size_t) 
     167pjmedia_mem_capture_get_size(pjmedia_port *port); 
     168 
     169 
     170/** 
    137171 * @} 
    138172 */ 
Note: See TracChangeset for help on using the changeset viewer.