Ignore:
Timestamp:
Dec 30, 2010 4:31:16 PM (13 years ago)
Author:
ming
Message:

Re #1184: Adding pjmedia_clock_src for the purpose of audio and video synchronization and also to provide synchronization mechanism between two medias in general.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/port.h

    r3392 r3402  
    2525 * @brief Port interface declaration 
    2626 */ 
     27#include <pjmedia/clock.h> 
    2728#include <pjmedia/format.h> 
    2829#include <pjmedia/frame.h> 
     
    373374 
    374375    /** 
     376     * Get clock source. 
     377     * This should only be called by #pjmedia_port_get_clock_src(). 
     378     */ 
     379    pjmedia_clock_src* (*get_clock_src)(struct pjmedia_port *this_port, 
     380                                        pjmedia_dir dir); 
     381 
     382    /** 
    375383     * Sink interface.  
    376384     * This should only be called by #pjmedia_port_put_frame(). 
     
    399407 * 
    400408 * @param info              The port info to be initialized. 
    401  * @param pool              Pool to allocate memory from. 
    402409 * @param name              Port name. 
    403410 * @param signature         Port signature. 
     
    437444 
    438445/** 
     446 * Get a clock source from the port. 
     447 * 
     448 * @param port      The media port. 
     449 * @param dir       Media port's direction. 
     450 * 
     451 * @return          The clock source or NULL if clock source is not present 
     452 *                  in the port. 
     453 */ 
     454PJ_DECL(pjmedia_clock_src *) pjmedia_port_get_clock_src( pjmedia_port *port, 
     455                                                         pjmedia_dir dir ); 
     456 
     457 
     458/** 
    439459 * Get a frame from the port (and subsequent downstream ports). 
    440460 * 
Note: See TracChangeset for help on using the changeset viewer.