Ignore:
Timestamp:
Mar 16, 2006 6:52:55 PM (18 years ago)
Author:
bennylp
Message:

Added sound port (sound_port.h/c), and changed sound and RTCP names from pj_* to pjmedia_*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/stream.c

    r319 r321  
    100100    unsigned                 rem_src_cnt;   /**< if different, # of pkt rcv */ 
    101101 
    102     pj_rtcp_session          rtcp;          /**< RTCP for incoming RTP.     */ 
     102    pjmedia_rtcp_session     rtcp;          /**< RTCP for incoming RTP.     */ 
    103103 
    104104    pj_bool_t                quit_flag;     /**< To signal thread exit.     */ 
     
    521521            continue; 
    522522        } 
    523         pj_rtcp_rx_rtp(&stream->rtcp, pj_ntohs(hdr->seq), pj_ntohl(hdr->ts)); 
     523        pjmedia_rtcp_rx_rtp(&stream->rtcp, pj_ntohs(hdr->seq), pj_ntohl(hdr->ts)); 
    524524 
    525525        /* Update stat */ 
     
    721721    /* Init RTCP session: */ 
    722722 
    723     pj_rtcp_init(&stream->rtcp, info->ssrc); 
     723    pjmedia_rtcp_init(&stream->rtcp, info->ssrc); 
    724724 
    725725 
     
    790790    if (stream->enc && stream->enc->snd_stream) { 
    791791 
    792         pj_snd_stream_stop(stream->enc->snd_stream); 
    793         pj_snd_stream_close(stream->enc->snd_stream); 
     792        pjmedia_snd_stream_stop(stream->enc->snd_stream); 
     793        pjmedia_snd_stream_close(stream->enc->snd_stream); 
    794794        stream->enc->snd_stream = NULL; 
    795795 
     
    802802    if (stream->dec && stream->dec->snd_stream) { 
    803803 
    804         pj_snd_stream_stop(stream->dec->snd_stream); 
    805         pj_snd_stream_close(stream->dec->snd_stream); 
     804        pjmedia_snd_stream_stop(stream->dec->snd_stream); 
     805        pjmedia_snd_stream_close(stream->dec->snd_stream); 
    806806        stream->dec->snd_stream = NULL; 
    807807 
     
    858858    if (stream->enc && (stream->dir & PJMEDIA_DIR_ENCODING)) { 
    859859        stream->enc->paused = 0; 
    860         //pj_snd_stream_start(stream->enc->snd_stream); 
     860        //pjmedia_snd_stream_start(stream->enc->snd_stream); 
    861861        PJ_LOG(4,(THIS_FILE, "Encoder stream started")); 
    862862    } else { 
     
    866866    if (stream->dec && (stream->dir & PJMEDIA_DIR_DECODING)) { 
    867867        stream->dec->paused = 0; 
    868         //pj_snd_stream_start(stream->dec->snd_stream); 
     868        //pjmedia_snd_stream_start(stream->dec->snd_stream); 
    869869        PJ_LOG(4,(THIS_FILE, "Decoder stream started")); 
    870870    } else { 
Note: See TracChangeset for help on using the changeset viewer.