Skip to content

Commit

Permalink
[3rdparty] Update libremidi to get midi through dlopen on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Oct 4, 2023
1 parent 81f6517 commit 0893e49
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 3rdparty/libremidi
2 changes: 1 addition & 1 deletion cmake/OssiaOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ function(ossia_add_test TESTNAME TESTSRCS)
target_compile_definitions(ossia_${TESTNAME} PUBLIC CATCH_CONFIG_NO_CPP17_UNCAUGHT_EXCEPTIONS)
endif()
target_include_directories(ossia_${TESTNAME} PUBLIC "${CMAKE_CURRENT_LIST_DIR}/catch")
target_link_libraries(ossia_${TESTNAME} PUBLIC ${OSSIA_LINK_OPTIONS} ossia PRIVATE Catch2::Catch2WithMain)
target_link_libraries(ossia_${TESTNAME} PUBLIC ${OSSIA_LINK_OPTIONS} ossia Catch2::Catch2WithMain)

add_test(NAME ossia_target_${TESTNAME} COMMAND ossia_${TESTNAME})
endFunction()
8 changes: 8 additions & 0 deletions src/ossia/audio/audio_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,14 @@ ossia::audio_engine* make_audio_engine(
p = new ossia::dummy_engine{rate, bs};
}

if(p)
{
inputs = p->effective_inputs;
outputs = p->effective_outputs;
rate = p->effective_sample_rate;
bs = p->effective_buffer_size;
}

return p;
}

Expand Down

0 comments on commit 0893e49

Please sign in to comment.