Changeset 3366
- Timestamp:
- 04/16/00 01:04:48 (13 years ago)
- Location:
- rat/trunk
- Files:
-
- 4 modified
-
MODS (modified) (1 diff)
-
main_engine.c (modified) (4 diffs)
-
transmit.c (modified) (1 diff)
-
transmit.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rat/trunk/MODS
r3365 r3366 1275 1275 - Document configure options which may be needed to build on Irix 1276 1276 in INSTALL.TXT 1277 - Fix RTP SR timestamps and RTP jitter calculation 1278 1277 1279 1278 1280 -
rat/trunk/main_engine.c
r3363 r3366 119 119 int main(int argc, char *argv[]) 120 120 { 121 uint32_t ntp_time = 0;121 uint32_t rtp_time = 0; 122 122 int seed, elapsed_time, alc = 0, scnt = 0; 123 123 session_t *sp; … … 193 193 /* Process audio */ 194 194 elapsed_time = audio_rw_process(sp, sp, sp->ms); 195 ntp_time = ntp_time32();196 195 197 196 if (tx_is_sending(sp->tb)) { … … 204 203 timeout.tv_usec = 0; 205 204 for (j = 0; j < sp->rtp_session_count; j++) { 206 while(rtp_recv(sp->rtp_session[j], &timeout, ntp_time)); 207 rtp_send_ctrl(sp->rtp_session[j], ntp_time, NULL); 205 /* FIXME: The should take an RTP format timestamp! */ 206 rtp_time = tx_get_rtp_time(sp); 207 while(rtp_recv(sp->rtp_session[j], &timeout, rtp_time)); 208 rtp_send_ctrl(sp->rtp_session[j], rtp_time, NULL); 208 209 rtp_update(sp->rtp_session[j]); 209 210 } … … 331 332 timeout.tv_usec = 0; 332 333 for (j = 0; j < sp->rtp_session_count; j++) { 333 while(rtp_recv(sp->rtp_session[j], &timeout, ntp_time));334 while(rtp_recv(sp->rtp_session[j], &timeout, rtp_time)); 334 335 } 335 336 sp->playing_audio = saved_playing_audio; -
rat/trunk/transmit.c
r3334 r3366 791 791 } 792 792 } 793 794 uint32_t 795 tx_get_rtp_time(session_t *sp) 796 { 797 return ts_seq32_out(&sp->tb->up_seq, sp->tb->sample_rate, sp->cur_ts); 798 } 799 -
rat/trunk/transmit.h
r3325 r3366 30 30 void tx_stop (struct s_tx_buffer *tb); 31 31 32 int tx_is_sending (struct s_tx_buffer *tb);32 int tx_is_sending (struct s_tx_buffer *tb); 33 33 int tx_read_audio (struct s_tx_buffer *tb); 34 34 int tx_process_audio (struct s_tx_buffer *tb); … … 39 39 double tx_get_bps (struct s_tx_buffer *tb); 40 40 41 uint32_t tx_get_rtp_time(struct s_session *sp); 42 41 43 #endif /* _transmit_h_ */
