- Timestamp:
- Jun 27, 2008 9:12:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/test-pjsua/mod_media_playrec.py
r2052 r2078 15 15 import subprocess 16 16 import inc_const as const 17 from inc_cfg import * 17 18 18 19 # Load configuration 19 cfg_file = imp.load_source("cfg_file", sys.argv[2])20 cfg_file = imp.load_source("cfg_file", ARGS[1]) 20 21 21 22 # WAV similarity calculator … … 25 26 COMPARE_THRESHOLD = 2 26 27 27 # UserData 28 class mod_media_playrec_user_data: 29 input_filename = "" 30 output_filename = "" 28 # COMPARE params 29 input_filename = "" # Input filename 30 output_filename = "" # Output filename 31 31 32 32 # Test body function 33 33 def test_func(t, ud): 34 global input_filename 35 global output_filename 36 34 37 endpt = t.process[0] 35 38 … … 68 71 # Post body function 69 72 def post_func(t, ud): 73 global input_filename 74 global output_filename 75 70 76 endpt = t.process[0] 71 77 … … 94 100 test.test_func = test_func 95 101 test.post_func = post_func 96 test.user_data = mod_media_playrec_user_data()
Note: See TracChangeset
for help on using the changeset viewer.