Changeset 2839


Ignore:
Timestamp:
Jul 17, 2009 11:37:42 AM (15 years ago)
Author:
bennylp
Message:

More ticket #720: added Win32 target in VS2005 project

Location:
pjproject/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjproject-vs8.sln

    r2835 r2839  
    31583158                {5E507EA2-CB39-47CA-BD39-49EB58D7A0BB}.Debug|Pocket PC 2003 (ARMV4).ActiveCfg = Debug|Windows Mobile 6 Professional SDK (ARMV4I) 
    31593159                {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 
    31613162                {5E507EA2-CB39-47CA-BD39-49EB58D7A0BB}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 6 Professional SDK (ARMV4I) 
    31623163                {5E507EA2-CB39-47CA-BD39-49EB58D7A0BB}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 6 Professional SDK (ARMV4I) 
     
    31963197                {5E507EA2-CB39-47CA-BD39-49EB58D7A0BB}.Release|Pocket PC 2003 (ARMV4).ActiveCfg = Release|Windows Mobile 6 Professional SDK (ARMV4I) 
    31973198                {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 
    31993201                {5E507EA2-CB39-47CA-BD39-49EB58D7A0BB}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 6 Professional SDK (ARMV4I) 
    32003202                {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
      •  

        old new  
        33*.plg 
        44*.log 
         5*.LOG 
        56.* 
        67*.sln 
         
        910*.pdb 
        1011*.wav 
         12*.WAV 
        1113activex-pjsua_p.c 
        1214dlldata.c 
         
        1416footprint.htm 
        1517*.htm 
         18PJSYSTEST* 
  • pjproject/trunk/pjsip-apps/build/pjsystest.dsp

    r2835 r2839  
    9292 
    9393SOURCE=..\src\pjsystest\main_console.c 
    94  
    95 !IF  "$(CFG)" == "pjsystest - Win32 Release" 
    96  
    97 !ELSEIF  "$(CFG)" == "pjsystest - Win32 Debug" 
    98  
    99 !ENDIF  
    100  
    10194# End Source File 
    10295# Begin Source File 
  • pjproject/trunk/pjsip-apps/build/pjsystest.vcproj

    r2838 r2839  
    1515                        Name="Windows Mobile 6 Professional SDK (ARMV4I)" 
    1616                /> 
     17                <Platform 
     18                        Name="Win32" 
     19                /> 
    1720        </Platforms> 
    1821        <ToolFiles> 
     
    159162                </Configuration> 
    160163                <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 
    161227                        Name="Release|Windows Mobile 6 Standard SDK (ARMV4I)" 
    162228                        ConfigurationType="1" 
     
    295361                        /> 
    296362                        <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" 
    297426                        /> 
    298427                </Configuration> 
     
    345474                                RelativePath="..\src\pjsystest\main_wm.c" 
    346475                                > 
     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> 
    347492                        </File> 
    348493                        <File 
  • pjproject/trunk/pjsip-apps/src/pjsystest/systest.c

    r2836 r2839  
    378378    rec_id = PJSUA_INVALID_ID; 
    379379 
     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 
    380390    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. " 
    396392                     "The recorded audio is being played now to " 
    397393                     "the speaker device, in a loop. Listen for " 
     
    487483    param.rec_id = systest.rec_id; 
    488484    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; 
    490486    param.channel_count = systest.media_cfg.channel_count; 
    491487    param.samples_per_frame = param.clock_rate * param.channel_count *  
     
    569565 
    570566        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 " 
    573569                        "than the playback device", 
    574570                        drift, which); 
     
    681677        lat = (max_echo_pos - max_signal_pos) * 1000 / wav->info.clock_rate; 
    682678 
    683 #if 1 
     679#if 0 
    684680        PJ_LOG(4,(THIS_FILE, "Signal at %dms, echo at %d ms, latency %d ms", 
    685681                  max_signal_pos * 1000 / wav->info.clock_rate, 
     
    771767 
    772768    /* We're running */ 
     769    PJ_LOG(3,(THIS_FILE, "Please wait while test is running (~10 sec)")); 
    773770    gui_sleep(10); 
    774771 
     
    947944    len = strlen(textbuf); 
    948945 
    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", 
    950947                     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); 
    951952    len = strlen(textbuf); 
    952953 
     
    10321033    pjsua_config_default(&systest.ua_cfg); 
    10331034    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; 
    10351037    if (OVERRIDE_AUD_FRAME_PTIME) 
    10361038        systest.media_cfg.audio_frame_ptime = OVERRIDE_AUD_FRAME_PTIME; 
    10371039    systest.media_cfg.channel_count = CHANNEL_COUNT; 
    1038     systest.rec_id = PJMEDIA_AUD_DEFAULT_CAPTURE_DEV; 
    1039     systest.play_id = PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV; 
     1040    systest.rec_id = REC_DEV_ID; 
     1041    systest.play_id = PLAY_DEV_ID; 
    10401042    systest.media_cfg.ec_tail_len = 0; 
    10411043 
  • pjproject/trunk/pjsip-apps/src/pjsystest/systest.h

    r2836 r2839  
    2525 * Overrideable parameters 
    2626 */ 
    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 
    2933#define OVERRIDE_AUD_FRAME_PTIME        0 
    30 #define CLOCK_RATE                      8000 
     34 
     35/* Don't change this */ 
    3136#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 
    3248 
    3349#if defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE 
     
    4056#else 
    4157    #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" 
    4763#endif 
    4864 
Note: See TracChangeset for help on using the changeset viewer.