Skip to content

Commit fdfd3d4

Browse files
committed
Rename portaudio dll
1 parent 125b501 commit fdfd3d4

2 files changed

Lines changed: 2 additions & 14 deletions

File tree

portaudio/CMakeLists.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff 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-
9789
target_link_libraries(portaudio ole32 advapi32 setupapi winmm)
9890

9991
install(TARGETS portaudio)

timidity/w32_portaudio_dll.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,8 @@ void free_portaudio_dll(void)
133133
int 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");

0 commit comments

Comments
 (0)