- Timestamp:
- Feb 14, 2006 9:08:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/portaudio/dsound_wrapper.c
r65 r183 96 96 return E_NOTIMPL; 97 97 } 98 99 #ifndef _T 100 # define _T(s) s 101 #endif 102 98 103 /************************************************************************************/ 99 104 void DSW_InitializeDSoundEntryPoints(void) 100 105 { 101 dswDSoundEntryPoints.hInstance_ = LoadLibrary( "dsound.dll");106 dswDSoundEntryPoints.hInstance_ = LoadLibrary(_T("dsound.dll")); 102 107 if( dswDSoundEntryPoints.hInstance_ != NULL ) 103 108 { 104 109 dswDSoundEntryPoints.DirectSoundCreate = 105 110 (HRESULT (WINAPI *)(LPGUID, LPDIRECTSOUND *, LPUNKNOWN)) 106 GetProcAddress( dswDSoundEntryPoints.hInstance_, "DirectSoundCreate");111 GetProcAddress( dswDSoundEntryPoints.hInstance_, _T("DirectSoundCreate") ); 107 112 if( dswDSoundEntryPoints.DirectSoundCreate == NULL ) 108 113 dswDSoundEntryPoints.DirectSoundCreate = DummyDirectSoundCreate; … … 110 115 dswDSoundEntryPoints.DirectSoundEnumerateW = 111 116 (HRESULT (WINAPI *)(LPDSENUMCALLBACKW, LPVOID)) 112 GetProcAddress( dswDSoundEntryPoints.hInstance_, "DirectSoundEnumerateW");117 GetProcAddress( dswDSoundEntryPoints.hInstance_, _T("DirectSoundEnumerateW") ); 113 118 if( dswDSoundEntryPoints.DirectSoundEnumerateW == NULL ) 114 119 dswDSoundEntryPoints.DirectSoundEnumerateW = DummyDirectSoundEnumerateW; … … 116 121 dswDSoundEntryPoints.DirectSoundEnumerateA = 117 122 (HRESULT (WINAPI *)(LPDSENUMCALLBACKA, LPVOID)) 118 GetProcAddress( dswDSoundEntryPoints.hInstance_, "DirectSoundEnumerateA");123 GetProcAddress( dswDSoundEntryPoints.hInstance_, _T("DirectSoundEnumerateA") ); 119 124 if( dswDSoundEntryPoints.DirectSoundEnumerateA == NULL ) 120 125 dswDSoundEntryPoints.DirectSoundEnumerateA = DummyDirectSoundEnumerateA; … … 122 127 dswDSoundEntryPoints.DirectSoundCaptureCreate = 123 128 (HRESULT (WINAPI *)(LPGUID, LPDIRECTSOUNDCAPTURE *, LPUNKNOWN)) 124 GetProcAddress( dswDSoundEntryPoints.hInstance_, "DirectSoundCaptureCreate");129 GetProcAddress( dswDSoundEntryPoints.hInstance_, _T("DirectSoundCaptureCreate") ); 125 130 if( dswDSoundEntryPoints.DirectSoundCaptureCreate == NULL ) 126 131 dswDSoundEntryPoints.DirectSoundCaptureCreate = DummyDirectSoundCaptureCreate; … … 128 133 dswDSoundEntryPoints.DirectSoundCaptureEnumerateW = 129 134 (HRESULT (WINAPI *)(LPDSENUMCALLBACKW, LPVOID)) 130 GetProcAddress( dswDSoundEntryPoints.hInstance_, "DirectSoundCaptureEnumerateW");135 GetProcAddress( dswDSoundEntryPoints.hInstance_, _T("DirectSoundCaptureEnumerateW") ); 131 136 if( dswDSoundEntryPoints.DirectSoundCaptureEnumerateW == NULL ) 132 137 dswDSoundEntryPoints.DirectSoundCaptureEnumerateW = DummyDirectSoundCaptureEnumerateW; … … 134 139 dswDSoundEntryPoints.DirectSoundCaptureEnumerateA = 135 140 (HRESULT (WINAPI *)(LPDSENUMCALLBACKA, LPVOID)) 136 GetProcAddress( dswDSoundEntryPoints.hInstance_, "DirectSoundCaptureEnumerateA");141 GetProcAddress( dswDSoundEntryPoints.hInstance_, _T("DirectSoundCaptureEnumerateA") ); 137 142 if( dswDSoundEntryPoints.DirectSoundCaptureEnumerateA == NULL ) 138 143 dswDSoundEntryPoints.DirectSoundCaptureEnumerateA = DummyDirectSoundCaptureEnumerateA;
Note: See TracChangeset
for help on using the changeset viewer.