Skip to content

Commit

Permalink
Fixed crash with rtaudio/asio #1772 (#1788)
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg68 authored Jan 29, 2024
1 parent 15dac59 commit be7ac93
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- Fixed crash with rtaudio/asio https://github.com/GrandOrgue/grandorgue/issues/1772
- Added support of specifying different crossfade length for additional attack and release files https://github.com/GrandOrgue/grandorgue/issues/1760
- Fixed wrong filename of the midi recorder file with Hungarian language settings https://github.com/GrandOrgue/grandorgue/issues/1644
- Fixed unability to select the Hungarian language in the Organ Settings dialog
Expand Down
23 changes: 10 additions & 13 deletions src/rt/rtaudio/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
# Copyright 2006 Milan Digital Audio LLC
# Copyright 2009-2023 GrandOrgue contributors (see AUTHORS)
# Copyright 2009-2024 GrandOrgue contributors (see AUTHORS)
# License GPL-2.0 or later (https://www.gnu.org/licenses/old-licenses/gpl-2.0.html).

message(STATUS "RtAudio build Configuration")

INCLUDE (CheckIncludeFileCXX)

include_directories("${RTAUDIO_SRC_DIR}/include")
set(RtAudio_Sources "${RTAUDIO_SRC_DIR}/RtAudio.cpp")

if (WIN32)
if (RTAUDIO_USE_ASIO)
add_definitions(-D__WINDOWS_ASIO__ -D_WIN32_WINNT=0x0501 -DWINVER=0x0501)
# they should be included before ${RTAUDIO_SRC_DIR}/include because
# the same headers in ${RTAUDIO_SRC_DIR}/include are of a wrong version
include_directories(
"${ASIO_SDK_DIR}/common"
"${ASIO_SDK_DIR}/host"
"${ASIO_SDK_DIR}/host/pc"
)
set(RtAudio_Sources ${RtAudio_Sources}
"${ASIO_SDK_DIR}/host/asiodrivers.cpp"
"${ASIO_SDK_DIR}/host/pc/asiolist.cpp"
Expand All @@ -20,6 +27,7 @@ if (WIN32)
endif ()
endif ()

include_directories("${RTAUDIO_SRC_DIR}/include")
add_library(RtAudio STATIC ${RtAudio_Sources})

if (WIN32)
Expand All @@ -33,17 +41,6 @@ if (WIN32)
target_link_libraries(RtAudio dsound)
endif ()

if (RTAUDIO_USE_ASIO)
add_definitions(-D__WINDOWS_ASIO__ -D_WIN32_WINNT=0x0501 -DWINVER=0x0501)
include_directories(
"${ASIO_SDK_DIR}/common"
"${ASIO_SDK_DIR}/host"
"${ASIO_SDK_DIR}/host/pc"
)
include_directories(asiohelpers)
include_directories(asiohelpers/include)
endif ()

elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")

message(STATUS " Building a Linux configuration")
Expand Down
2 changes: 1 addition & 1 deletion submodules/RtAudio
Submodule RtAudio updated 1 files
+4 −0 RtAudio.cpp

0 comments on commit be7ac93

Please sign in to comment.