- Timestamp:
- Jun 25, 2008 3:05:21 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/test-pjsua/mod_media_playrec.py
r2036 r2051 21 21 # WAV similarity calculator 22 22 COMPARE_WAV_EXE = "tools/cmp_wav.exe" 23 24 # Threshold to declare degradation is too high when result is lower than this value 25 COMPARE_THRESHOLD = 2 23 26 24 27 # UserData … … 87 90 # Evaluate the similarity value 88 91 sim_val = mo_sim_val.group(1) 89 if (sim_val > 0):92 if (sim_val >= COMPARE_THRESHOLD): 90 93 endpt.trace("WAV similarity = " + sim_val) 91 94 else: 92 raise TestError(" Degraded WAV heavily distorted")95 raise TestError("WAV degraded heavily, similarity = " + sim_val) 93 96 94 97
Note: See TracChangeset
for help on using the changeset viewer.