Ticket #446: Added sample application to mix WAV files using conference bridge
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1681 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
c485dd881e
commit
a268770929
|
@ -52,6 +52,7 @@ SAMPLES = $(BINDIR)\confsample.exe \
|
|||
$(BINDIR)\confbench.exe \
|
||||
$(BINDIR)\encdec.exe \
|
||||
$(BINDIR)\level.exe \
|
||||
$(BINDIR)\mix.exe \
|
||||
$(BINDIR)\pjsip-perf.exe \
|
||||
$(BINDIR)\playfile.exe \
|
||||
$(BINDIR)\playsine.exe\
|
||||
|
|
|
@ -16,6 +16,7 @@ BINDIR := ../bin/samples
|
|||
SAMPLES := confsample \
|
||||
encdec \
|
||||
level \
|
||||
mix \
|
||||
pjsip-perf \
|
||||
playfile \
|
||||
playsine \
|
||||
|
|
|
@ -114,6 +114,10 @@ SOURCE=..\src\samples\level.c
|
|||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\samples\mix.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\src\samples\pjsip-perf.c"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
|
|
@ -93,6 +93,10 @@
|
|||
RelativePath="..\src\samples\level.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\src\samples\mix.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\src\samples\pjsip-perf.c"
|
||||
>
|
||||
|
|
|
@ -201,7 +201,7 @@ static pj_status_t enc_dec_test(const char *codec_id,
|
|||
out_frm.buf = (char*)pcmbuf;
|
||||
out_frm.size = sizeof(pcmbuf);
|
||||
|
||||
if ((pj_rand() % 100) < lost_pct) {
|
||||
if ((pj_rand() % 100) < (int)lost_pct) {
|
||||
/* Simulate loss */
|
||||
CHECK( codec->op->recover(codec, sizeof(pcmbuf), &out_frm) );
|
||||
TRACE_((THIS_FILE, "%d.%03d Packet lost", T));
|
||||
|
|
Loading…
Reference in New Issue