File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,14 +86,6 @@ add_library(
8686 portaudio.def
8787)
8888
89- set_target_properties (portaudio PROPERTIES PREFIX "" )
90-
91- if (${CMAKE_SIZEOF_VOID_P } EQUAL 8)
92- set_target_properties (portaudio PROPERTIES OUTPUT_NAME "portaudio_x64" )
93- else ()
94- set_target_properties (portaudio PROPERTIES OUTPUT_NAME "portaudio_x86" )
95- endif ()
96-
9789target_link_libraries (portaudio ole32 advapi32 setupapi winmm )
9890
9991install (TARGETS portaudio)
Original file line number Diff line number Diff line change @@ -133,12 +133,8 @@ void free_portaudio_dll(void)
133133int load_portaudio_dll (int a )
134134{
135135 if (!h_portaudio_dll ){
136- #ifdef _WIN64
137- h_portaudio_dll = LoadLibrary ("portaudio_x64" );
138- #else
139- h_portaudio_dll = LoadLibrary ("portaudio_x86" );
140- #endif
141- if (!h_portaudio_dll ) h_portaudio_dll = LoadLibrary ("portaudio" );
136+ h_portaudio_dll = LoadLibrary ("portaudio.dll" );
137+ if (!h_portaudio_dll ) h_portaudio_dll = LoadLibrary ("libportaudio.dll" );
142138 if (!h_portaudio_dll ) return -1 ;
143139 }
144140 portaudio_dll .Pa_GetVersion = (type_Pa_GetVersion )GetProcAddress (h_portaudio_dll ,"Pa_GetVersion" );
You can’t perform that action at this time.
0 commit comments