summaryrefslogtreecommitdiff
path: root/tests/pjsua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pjsua')
-rw-r--r--tests/pjsua/tools/Makefile2
-rw-r--r--tests/pjsua/tools/cmp_wav.c7
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/pjsua/tools/Makefile b/tests/pjsua/tools/Makefile
index 189eb00c..1c5ac595 100644
--- a/tests/pjsua/tools/Makefile
+++ b/tests/pjsua/tools/Makefile
@@ -1,5 +1,5 @@
#Modify this to point to the PJSIP location.
-PJBASE=~/Desktop/project/pjproject
+PJBASE=../../..
include $(PJBASE)/build.mak
diff --git a/tests/pjsua/tools/cmp_wav.c b/tests/pjsua/tools/cmp_wav.c
index bcf6c3a3..f2353efd 100644
--- a/tests/pjsua/tools/cmp_wav.c
+++ b/tests/pjsua/tools/cmp_wav.c
@@ -147,13 +147,16 @@ int main(int argc, char *argv[])
return 1;
}
- if (file_ori_port->info.clock_rate != file_deg_port->info.clock_rate) {
+ if (file_ori_port->info.fmt.det.aud.clock_rate !=
+ file_deg_port->info.fmt.det.aud.clock_rate)
+ {
app_perror(THIS_FILE, "Clock rates must be same.", PJ_EINVAL);
return 1;
}
if (argc > 3)
- first_nsamples = atoi(argv[3]) * file_ori_port->info.clock_rate / 1000;
+ first_nsamples = atoi(argv[3]) *
+ file_ori_port->info.fmt.det.aud.clock_rate / 1000;
if (argc > 4)
detail = atoi(argv[4]);