Changeset 331:cd96ea6c4f98 in verona
- Timestamp:
- Oct 13, 2011 7:34:57 PM (21 months ago)
- Branch:
- default
- Files:
-
- 6 edited
-
phapi/phapi.c (modified) (3 diffs)
-
phapi/phapi.h (modified) (2 diffs)
-
phapi/phms.h (modified) (1 diff)
-
phapi/phms_audiostream.c (modified) (1 diff)
-
phcpp/phapipp.cpp (modified) (3 diffs)
-
phcpp/phapipp.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
phapi/phapi.c
r328 r331 183 183 184 184 static void ph_frame_display_cbk(void *ctx, void *event); 185 static void ph_qos_info_cbk(void *ctx, void *info); 185 186 186 187 static int ph_call_media_stop(phcall_t * ca); … … 946 947 } 947 948 949 void ph_qos_info_cbk(void *ctx, void * info) 950 { 951 phcall_t *ca = (phcall_t *)ctx; 952 phcb->qosEvent(ca->cid, (phQosInfo_t*)info); 953 } 954 948 955 void ph_frame_display_cbk(void *ctx, void *event) 949 956 { … … 5227 5234 s->dtmfCallback = ph_wegot_dtmf; 5228 5235 s->endCallback = ph_stream_ended; 5236 s->qosInfoCbk = ph_qos_info_cbk; 5229 5237 5230 5238 if (phcfg.vad & 0x80000000) -
phapi/phapi.h
r283 r331 959 959 }; 960 960 typedef struct phPicture phPicture_t; 961 962 struct phQosInfo 963 { 964 int total_losses; 965 int loss_fraction; 966 int rtt; 967 }; 968 typedef struct phQosInfo phQosInfo_t; 961 969 962 970 /** … … 1058 1066 void (*errorNotify) (enum phErrors error); 1059 1067 void (*soundFileStopped) (void *userdata , unsigned int _id, void *arg); 1068 void (*qosEvent)(int cid, const phQosInfo_t * info); 1060 1069 }; 1061 1070 typedef struct phCallbacks phCallbacks_t; -
phapi/phms.h
r328 r331 201 201 void (*endCallback)(void *info, int event); 202 202 void (*frameDisplayCbk)(void *info, void *event); 203 void (*qosInfoCbk)(void* info, void *event); 203 204 204 205 /* -
phapi/phms_audiostream.c
r291 r331 374 374 qos->data[newx].seqnum, qos->data[newx].total_losses, qos->data[newx].remote_jitter, 375 375 qos->data[newx].interval_losses, qos->data[newx].interval_packets, qos->data[newx].loss_fraction, qos->data[newx].rtt); 376 377 phQosInfo_t info; 378 379 info.total_losses = qos->data[newx].total_losses; 380 info.loss_fraction = qos->data[newx].loss_fraction; 381 info.rtt = qos->data[newx].rtt; 382 383 384 s->qosInfoCbk(s->cbkInfo, &info); 376 385 377 386 } -
phcpp/phapipp.cpp
r324 r331 489 489 void phapi::onSoundFileStopped(void *userdata , unsigned int _id, void *arg){} 490 490 491 void phapi::onQosEvent(int cid, const phQosInfo_t * info){} 492 491 493 void phapi::callProgress(int cid, const phCallStateInfo_t *info) 492 494 { … … 574 576 } 575 577 578 void phapi::qosEvent(int cid, const phQosInfo_t * info) 579 { 580 if (uniqueobj) 581 uniqueobj->onQosEvent(cid, info); 582 } 583 576 584 phCallbacks_t phapi::callbacks = { 577 585 phapi::callProgress, … … 588 596 phapi::phLogCsl, 589 597 #endif /*!HAVE_CSL*/ 590 phapi::soundFileStopped 598 phapi::soundFileStopped, 599 phapi::qosEvent 591 600 }; 592 601 -
phcpp/phapipp.h
r299 r331 211 211 virtual void onPhLogCsl(const char *msg); 212 212 virtual void onSoundFileStopped(void *userdata , unsigned int _id, void *arg); 213 virtual void onQosEvent(int cid, const phQosInfo_t * info); 213 214 214 215 … … 229 230 static void phLogCsl(const char *msg); 230 231 static void soundFileStopped(void *userdata , unsigned int _id, void *arg); 232 static void qosEvent(int cid, const phQosInfo_t * info); 231 233 #endif 232 234
Note: See TracChangeset
for help on using the changeset viewer.
