Ignore:
Timestamp:
Feb 14, 2006 9:08:51 PM (18 years ago)
Author:
bennylp
Message:

Ported pjmedia to WinCE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/portaudio/dsound_wrapper.c

    r65 r183  
    9696    return E_NOTIMPL; 
    9797} 
     98 
     99#ifndef _T 
     100#   define _T(s)    s 
     101#endif 
     102 
    98103/************************************************************************************/ 
    99104void DSW_InitializeDSoundEntryPoints(void) 
    100105{ 
    101     dswDSoundEntryPoints.hInstance_ = LoadLibrary("dsound.dll"); 
     106    dswDSoundEntryPoints.hInstance_ = LoadLibrary(_T("dsound.dll")); 
    102107    if( dswDSoundEntryPoints.hInstance_ != NULL ) 
    103108    { 
    104109        dswDSoundEntryPoints.DirectSoundCreate = 
    105110                (HRESULT (WINAPI *)(LPGUID, LPDIRECTSOUND *, LPUNKNOWN)) 
    106                 GetProcAddress( dswDSoundEntryPoints.hInstance_, "DirectSoundCreate" ); 
     111                GetProcAddress( dswDSoundEntryPoints.hInstance_, _T("DirectSoundCreate") ); 
    107112        if( dswDSoundEntryPoints.DirectSoundCreate == NULL ) 
    108113            dswDSoundEntryPoints.DirectSoundCreate = DummyDirectSoundCreate; 
     
    110115        dswDSoundEntryPoints.DirectSoundEnumerateW = 
    111116                (HRESULT (WINAPI *)(LPDSENUMCALLBACKW, LPVOID)) 
    112                 GetProcAddress( dswDSoundEntryPoints.hInstance_, "DirectSoundEnumerateW" ); 
     117                GetProcAddress( dswDSoundEntryPoints.hInstance_, _T("DirectSoundEnumerateW") ); 
    113118        if( dswDSoundEntryPoints.DirectSoundEnumerateW == NULL ) 
    114119            dswDSoundEntryPoints.DirectSoundEnumerateW = DummyDirectSoundEnumerateW; 
     
    116121        dswDSoundEntryPoints.DirectSoundEnumerateA = 
    117122                (HRESULT (WINAPI *)(LPDSENUMCALLBACKA, LPVOID)) 
    118                 GetProcAddress( dswDSoundEntryPoints.hInstance_, "DirectSoundEnumerateA" ); 
     123                GetProcAddress( dswDSoundEntryPoints.hInstance_, _T("DirectSoundEnumerateA") ); 
    119124        if( dswDSoundEntryPoints.DirectSoundEnumerateA == NULL ) 
    120125            dswDSoundEntryPoints.DirectSoundEnumerateA = DummyDirectSoundEnumerateA; 
     
    122127        dswDSoundEntryPoints.DirectSoundCaptureCreate = 
    123128                (HRESULT (WINAPI *)(LPGUID, LPDIRECTSOUNDCAPTURE *, LPUNKNOWN)) 
    124                 GetProcAddress( dswDSoundEntryPoints.hInstance_, "DirectSoundCaptureCreate" ); 
     129                GetProcAddress( dswDSoundEntryPoints.hInstance_, _T("DirectSoundCaptureCreate") ); 
    125130        if( dswDSoundEntryPoints.DirectSoundCaptureCreate == NULL ) 
    126131            dswDSoundEntryPoints.DirectSoundCaptureCreate = DummyDirectSoundCaptureCreate; 
     
    128133        dswDSoundEntryPoints.DirectSoundCaptureEnumerateW = 
    129134                (HRESULT (WINAPI *)(LPDSENUMCALLBACKW, LPVOID)) 
    130                 GetProcAddress( dswDSoundEntryPoints.hInstance_, "DirectSoundCaptureEnumerateW" ); 
     135                GetProcAddress( dswDSoundEntryPoints.hInstance_, _T("DirectSoundCaptureEnumerateW") ); 
    131136        if( dswDSoundEntryPoints.DirectSoundCaptureEnumerateW == NULL ) 
    132137            dswDSoundEntryPoints.DirectSoundCaptureEnumerateW = DummyDirectSoundCaptureEnumerateW; 
     
    134139        dswDSoundEntryPoints.DirectSoundCaptureEnumerateA = 
    135140                (HRESULT (WINAPI *)(LPDSENUMCALLBACKA, LPVOID)) 
    136                 GetProcAddress( dswDSoundEntryPoints.hInstance_, "DirectSoundCaptureEnumerateA" ); 
     141                GetProcAddress( dswDSoundEntryPoints.hInstance_, _T("DirectSoundCaptureEnumerateA") ); 
    137142        if( dswDSoundEntryPoints.DirectSoundCaptureEnumerateA == NULL ) 
    138143            dswDSoundEntryPoints.DirectSoundCaptureEnumerateA = DummyDirectSoundCaptureEnumerateA; 
Note: See TracChangeset for help on using the changeset viewer.