- Timestamp:
- Jul 17, 2009 11:37:42 AM (15 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjproject-vs8.sln
r2835 r2839 3158 3158 {5E507EA2-CB39-47CA-BD39-49EB58D7A0BB}.Debug|Pocket PC 2003 (ARMV4).ActiveCfg = Debug|Windows Mobile 6 Professional SDK (ARMV4I) 3159 3159 {5E507EA2-CB39-47CA-BD39-49EB58D7A0BB}.Debug|Smartphone 2003 (ARMV4).ActiveCfg = Debug|Windows Mobile 6 Professional SDK (ARMV4I) 3160 {5E507EA2-CB39-47CA-BD39-49EB58D7A0BB}.Debug|Win32.ActiveCfg = Debug|Windows Mobile 6 Professional SDK (ARMV4I) 3160 {5E507EA2-CB39-47CA-BD39-49EB58D7A0BB}.Debug|Win32.ActiveCfg = Debug|Win32 3161 {5E507EA2-CB39-47CA-BD39-49EB58D7A0BB}.Debug|Win32.Build.0 = Debug|Win32 3161 3162 {5E507EA2-CB39-47CA-BD39-49EB58D7A0BB}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 6 Professional SDK (ARMV4I) 3162 3163 {5E507EA2-CB39-47CA-BD39-49EB58D7A0BB}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 6 Professional SDK (ARMV4I) … … 3196 3197 {5E507EA2-CB39-47CA-BD39-49EB58D7A0BB}.Release|Pocket PC 2003 (ARMV4).ActiveCfg = Release|Windows Mobile 6 Professional SDK (ARMV4I) 3197 3198 {5E507EA2-CB39-47CA-BD39-49EB58D7A0BB}.Release|Smartphone 2003 (ARMV4).ActiveCfg = Release|Windows Mobile 6 Professional SDK (ARMV4I) 3198 {5E507EA2-CB39-47CA-BD39-49EB58D7A0BB}.Release|Win32.ActiveCfg = Release|Windows Mobile 6 Professional SDK (ARMV4I) 3199 {5E507EA2-CB39-47CA-BD39-49EB58D7A0BB}.Release|Win32.ActiveCfg = Release|Win32 3200 {5E507EA2-CB39-47CA-BD39-49EB58D7A0BB}.Release|Win32.Build.0 = Release|Win32 3199 3201 {5E507EA2-CB39-47CA-BD39-49EB58D7A0BB}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 6 Professional SDK (ARMV4I) 3200 3202 {5E507EA2-CB39-47CA-BD39-49EB58D7A0BB}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 6 Professional SDK (ARMV4I) -
pjproject/trunk/pjsip-apps/build
- Property svn:ignore
-
pjproject/trunk/pjsip-apps/build/pjsystest.dsp
r2835 r2839 92 92 93 93 SOURCE=..\src\pjsystest\main_console.c 94 95 !IF "$(CFG)" == "pjsystest - Win32 Release"96 97 !ELSEIF "$(CFG)" == "pjsystest - Win32 Debug"98 99 !ENDIF100 101 94 # End Source File 102 95 # Begin Source File -
pjproject/trunk/pjsip-apps/build/pjsystest.vcproj
r2838 r2839 15 15 Name="Windows Mobile 6 Professional SDK (ARMV4I)" 16 16 /> 17 <Platform 18 Name="Win32" 19 /> 17 20 </Platforms> 18 21 <ToolFiles> … … 159 162 </Configuration> 160 163 <Configuration 164 Name="Debug|Win32" 165 ConfigurationType="1" 166 InheritedPropertySheets="..\..\build\vs\pjproject-vs8-debug-static-defaults.vsprops;..\..\build\vs\pjproject-vs8-win32-common-defaults.vsprops" 167 > 168 <Tool 169 Name="VCPreBuildEventTool" 170 /> 171 <Tool 172 Name="VCCustomBuildTool" 173 /> 174 <Tool 175 Name="VCXMLDataGeneratorTool" 176 /> 177 <Tool 178 Name="VCWebServiceProxyGeneratorTool" 179 /> 180 <Tool 181 Name="VCMIDLTool" 182 /> 183 <Tool 184 Name="VCCLCompilerTool" 185 AdditionalIncludeDirectories="../../pjsip/include,../../pjlib/include,../../pjlib-util/include,../../pjmedia/include,../../pjnath/include" 186 PreprocessorDefinitions="_CONSOLE;" 187 /> 188 <Tool 189 Name="VCManagedResourceCompilerTool" 190 /> 191 <Tool 192 Name="VCResourceCompilerTool" 193 /> 194 <Tool 195 Name="VCPreLinkEventTool" 196 /> 197 <Tool 198 Name="VCLinkerTool" 199 AdditionalDependencies="Iphlpapi.lib dsound.lib dxguid.lib netapi32.lib mswsock.lib ws2_32.lib odbc32.lib odbccp32.lib ole32.lib user32.lib gdi32.lib advapi32.lib" 200 /> 201 <Tool 202 Name="VCALinkTool" 203 /> 204 <Tool 205 Name="VCManifestTool" 206 /> 207 <Tool 208 Name="VCXDCMakeTool" 209 /> 210 <Tool 211 Name="VCBscMakeTool" 212 /> 213 <Tool 214 Name="VCFxCopTool" 215 /> 216 <Tool 217 Name="VCAppVerifierTool" 218 /> 219 <Tool 220 Name="VCWebDeploymentTool" 221 /> 222 <Tool 223 Name="VCPostBuildEventTool" 224 /> 225 </Configuration> 226 <Configuration 161 227 Name="Release|Windows Mobile 6 Standard SDK (ARMV4I)" 162 228 ConfigurationType="1" … … 295 361 /> 296 362 <DebuggerTool 363 /> 364 </Configuration> 365 <Configuration 366 Name="Release|Win32" 367 ConfigurationType="1" 368 InheritedPropertySheets="..\..\build\vs\pjproject-vs8-release-dynamic-defaults.vsprops;..\..\build\vs\pjproject-vs8-win32-release-defaults.vsprops" 369 > 370 <Tool 371 Name="VCPreBuildEventTool" 372 /> 373 <Tool 374 Name="VCCustomBuildTool" 375 /> 376 <Tool 377 Name="VCXMLDataGeneratorTool" 378 /> 379 <Tool 380 Name="VCWebServiceProxyGeneratorTool" 381 /> 382 <Tool 383 Name="VCMIDLTool" 384 /> 385 <Tool 386 Name="VCCLCompilerTool" 387 AdditionalIncludeDirectories="../../pjsip/include,../../pjlib/include,../../pjlib-util/include,../../pjmedia/include,../../pjnath/include" 388 PreprocessorDefinitions="_CONSOLE;" 389 /> 390 <Tool 391 Name="VCManagedResourceCompilerTool" 392 /> 393 <Tool 394 Name="VCResourceCompilerTool" 395 /> 396 <Tool 397 Name="VCPreLinkEventTool" 398 /> 399 <Tool 400 Name="VCLinkerTool" 401 AdditionalDependencies="Iphlpapi.lib dsound.lib dxguid.lib netapi32.lib mswsock.lib ws2_32.lib odbc32.lib odbccp32.lib ole32.lib user32.lib gdi32.lib advapi32.lib" 402 /> 403 <Tool 404 Name="VCALinkTool" 405 /> 406 <Tool 407 Name="VCManifestTool" 408 /> 409 <Tool 410 Name="VCXDCMakeTool" 411 /> 412 <Tool 413 Name="VCBscMakeTool" 414 /> 415 <Tool 416 Name="VCFxCopTool" 417 /> 418 <Tool 419 Name="VCAppVerifierTool" 420 /> 421 <Tool 422 Name="VCWebDeploymentTool" 423 /> 424 <Tool 425 Name="VCPostBuildEventTool" 297 426 /> 298 427 </Configuration> … … 345 474 RelativePath="..\src\pjsystest\main_wm.c" 346 475 > 476 <FileConfiguration 477 Name="Debug|Win32" 478 ExcludedFromBuild="true" 479 > 480 <Tool 481 Name="VCCLCompilerTool" 482 /> 483 </FileConfiguration> 484 <FileConfiguration 485 Name="Release|Win32" 486 ExcludedFromBuild="true" 487 > 488 <Tool 489 Name="VCCLCompilerTool" 490 /> 491 </FileConfiguration> 347 492 </File> 348 493 <File -
pjproject/trunk/pjsip-apps/src/pjsystest/systest.c
r2836 r2839 378 378 rec_id = PJSUA_INVALID_ID; 379 379 380 status = pjsua_player_create(&filename, 0, &play_id); 381 if (status != PJ_SUCCESS) 382 goto on_return; 383 384 play_slot = pjsua_player_get_conf_port(play_id); 385 386 status = pjsua_conf_connect(play_slot, 0); 387 if (status != PJ_SUCCESS) 388 goto on_return; 389 380 390 key = gui_msgbox(title, 381 "Recording has been stopped. Press OK to playback " 382 "the recorded audio.", 383 WITH_OK); 384 385 status = pjsua_player_create(&filename, 0, &play_id); 386 if (status != PJ_SUCCESS) 387 goto on_return; 388 389 play_slot = pjsua_player_get_conf_port(play_id); 390 391 status = pjsua_conf_connect(play_slot, 0); 392 if (status != PJ_SUCCESS) 393 goto on_return; 394 395 key = gui_msgbox(title, 391 "Recording has been stopped. " 396 392 "The recorded audio is being played now to " 397 393 "the speaker device, in a loop. Listen for " … … 487 483 param.rec_id = systest.rec_id; 488 484 param.play_id = systest.play_id; 489 param.clock_rate = systest.media_cfg. clock_rate;485 param.clock_rate = systest.media_cfg.snd_clock_rate; 490 486 param.channel_count = systest.media_cfg.channel_count; 491 487 param.samples_per_frame = param.clock_rate * param.channel_count * … … 569 565 570 566 pj_ansi_snprintf(drifttext, sizeof(drifttext), 571 "Clock drifts detected. Capture device"572 "is running %d samples per second%s "567 "Clock drifts detected. Capture " 568 "is %d samples/sec %s " 573 569 "than the playback device", 574 570 drift, which); … … 681 677 lat = (max_echo_pos - max_signal_pos) * 1000 / wav->info.clock_rate; 682 678 683 #if 1679 #if 0 684 680 PJ_LOG(4,(THIS_FILE, "Signal at %dms, echo at %d ms, latency %d ms", 685 681 max_signal_pos * 1000 / wav->info.clock_rate, … … 771 767 772 768 /* We're running */ 769 PJ_LOG(3,(THIS_FILE, "Please wait while test is running (~10 sec)")); 773 770 gui_sleep(10); 774 771 … … 947 944 len = strlen(textbuf); 948 945 949 pj_ansi_snprintf(textbuf+len, sizeof(textbuf)-len, " Clock rate: %d\r\n",946 pj_ansi_snprintf(textbuf+len, sizeof(textbuf)-len, "Test clock rate: %d\r\n", 950 947 systest.media_cfg.clock_rate); 948 len = strlen(textbuf); 949 950 pj_ansi_snprintf(textbuf+len, sizeof(textbuf)-len, "Device clock rate: %d\r\n", 951 systest.media_cfg.snd_clock_rate); 951 952 len = strlen(textbuf); 952 953 … … 1032 1033 pjsua_config_default(&systest.ua_cfg); 1033 1034 pjsua_media_config_default(&systest.media_cfg); 1034 systest.media_cfg.clock_rate = CLOCK_RATE; 1035 systest.media_cfg.clock_rate = TEST_CLOCK_RATE; 1036 systest.media_cfg.snd_clock_rate = DEV_CLOCK_RATE; 1035 1037 if (OVERRIDE_AUD_FRAME_PTIME) 1036 1038 systest.media_cfg.audio_frame_ptime = OVERRIDE_AUD_FRAME_PTIME; 1037 1039 systest.media_cfg.channel_count = CHANNEL_COUNT; 1038 systest.rec_id = PJMEDIA_AUD_DEFAULT_CAPTURE_DEV;1039 systest.play_id = P JMEDIA_AUD_DEFAULT_PLAYBACK_DEV;1040 systest.rec_id = REC_DEV_ID; 1041 systest.play_id = PLAY_DEV_ID; 1040 1042 systest.media_cfg.ec_tail_len = 0; 1041 1043 -
pjproject/trunk/pjsip-apps/src/pjsystest/systest.h
r2836 r2839 25 25 * Overrideable parameters 26 26 */ 27 #define OVERRIDE_AUDDEV_REC_LAT 100 28 #define OVERRIDE_AUDDEV_PLAY_LAT 200 27 #define REC_DEV_ID PJMEDIA_AUD_DEFAULT_CAPTURE_DEV 28 #define PLAY_DEV_ID PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV 29 //#define REC_DEV_ID 5 30 //#define PLAY_DEV_ID 5 31 #define OVERRIDE_AUDDEV_REC_LAT 0 32 #define OVERRIDE_AUDDEV_PLAY_LAT 0 29 33 #define OVERRIDE_AUD_FRAME_PTIME 0 30 #define CLOCK_RATE 8000 34 35 /* Don't change this */ 31 36 #define CHANNEL_COUNT 1 37 38 /* If you change CLOCK_RATE then the input WAV files need to be 39 * changed, so normally don't need to change this. 40 */ 41 #define TEST_CLOCK_RATE 8000 42 43 /* You may change sound device's clock rate as long as resampling 44 * is enabled. 45 */ 46 #define DEV_CLOCK_RATE 8000 47 32 48 33 49 #if defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE … … 40 56 #else 41 57 #define LOG_OUT_PATH "PJSYSTEST.LOG" 42 #define RESULT_OUT_PATH "PJSYSTEST .TXT"43 #define WAV_PLAYBACK_PATH " pjsip8.wav"44 #define WAV_REC_OUT_PATH " TESTREC.WAV"45 #define WAV_TOCK8_PATH " TOCK8.WAV"46 #define WAV_LATENCY_OUT_PATH " LATENCY.WAV"58 #define RESULT_OUT_PATH "PJSYSTEST_RESULT.TXT" 59 #define WAV_PLAYBACK_PATH "input.8.wav" 60 #define WAV_REC_OUT_PATH "PJSYSTEST_TESTREC.WAV" 61 #define WAV_TOCK8_PATH "tock8.wav" 62 #define WAV_LATENCY_OUT_PATH "PJSYSTEST_LATREC.WAV" 47 63 #endif 48 64
Note: See TracChangeset
for help on using the changeset viewer.